• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Wings 3D v
« Previous 1 … 9 10 11 12 13 Next »
Is this a bug in wings_export?

 
  • 0 Vote(s) - 0 Average
Is this a bug in wings_export?

Pages (2): 1 2 Next »
nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#1
06-27-2013, 12:31 PM
From wings_export.erl:
Code:
export(Exporter, Name, Ps, #st{shapes=Shs}=St0) ->
    St = wings_view:freeze_mirror(St0),
    ...
Apparently this is supposed to freeze the mirror before continuing to work with the meshes. However, Shs is bound before the freeze.
Shouldn't it be like this instead?
Code:
export(Exporter, Name, Ps, St0) ->
    St = wings_view:freeze_mirror(St0),
    Shs = St#st.shapes,
    ...
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#2
06-27-2013, 07:13 PM (This post was last modified: 06-27-2013, 07:16 PM by micheus.)
[edited]ops...
It seems you are right. I have to check the code here.

So, Is there any exporter that isn't exporting the mirrored object?
nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#3
06-27-2013, 09:02 PM
Unless they do the freeze in advance, none of them do =)
For example, the OBJ exporter doesn't.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#4
06-28-2013, 12:27 PM
There were only two exporters I played before and the only one I knew it was "freezing" the object was yafray plugin. For the POV-Ray I thought it was forgotten. Smile

That's probably remains for long time and until now no one has pointed this before. So, it seems the people didn't have problem with that.

If someone is exporting to an other modeller tool, maybe this behaviour would be appropriated, but for a render software it would be better export the frozen object (and in this case, only those exporters would use such command).

Well, I think that now we have a possible problem thinking about change this behaviour. Huh

___
At some moment when I was studying Erlang, I read or someone told me that this king of construction should be avoid: Shs = St#st.shapes.
So, the best code for your suggestion would be:
Code:
export(Exporter, Name, Ps, St0) ->
    #st{shapes=Shs} = St = wings_view:freeze_mirror(St0),
    ...
nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#5
10-10-2013, 09:12 AM
Bump!
Contributors,
Do you think this should be fixed in 1.5?
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#6
10-10-2013, 04:24 PM
Nemyax ... get git and do a targeted change and a pull request.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#7
10-10-2013, 04:25 PM (This post was last modified: 10-10-2013, 05:21 PM by micheus.)
(10-10-2013, 04:24 PM)ggaliens Wrote: Nemyax ... get git and do a targeted change and a pull request.
I'm already doing that fix right now. Wink

edit: Pull request #57
nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#8
10-10-2013, 04:26 PM
micheus
Thanks!
adamredwoods
Offline

Junior Member

Posts: 1
Threads: 0
Joined: Oct 2013
#9
10-11-2013, 04:34 AM
I just ran into this bug, too. Thanks for fixing it.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#10
10-11-2013, 04:54 PM
As the new version is about to be released, I think that this fix will not be on it.
So - by now - I think we'll still need to remember about use the menu option to "Freeze" the objects before use any export option.Wink
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode