• 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 Programming v
« Previous 1 2 3 4
wings_shape:delete(WeID, #st{})

 
  • 0 Vote(s) - 0 Average
wings_shape:delete(WeID, #st{})

ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#1
12-04-2012, 04:19 PM
wings_shape:delete(WeID, #st{}) when is_integer(WeID) ->


Guys ... dont' you think we should have one of these functions done right ? And inside it if some folder info needs to be massaged (optigon) ... this is the place for it ?

I call a folder reorg routine in about 10-20 places in my plugins and this seems wrong.
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#2
12-12-2012, 04:13 PM
I retract this concern of mine. I think I have a good enough work-around.

Many of my calls could be collected into one call, and some were not needed anyway. My bad.
optigon
Offline

Developer
Posts: 192
Threads: 26
Joined: Mar 2011
#3
12-12-2012, 04:29 PM
No worries.
I seached the wings source and found 15 instances. I think I did it this way due to the save_state atom and changing the folders is the last thing to happen. An object can be deleted and then later the command could fail. So the folders are accessed aftert he command has completed successfully.
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#4
12-12-2012, 04:57 PM
Which of these should I be calling after a #we delete. Currently it is the former, I thing from
old conversation with you.

recreate_folder_system/1,update_folders/1
optigon
Offline

Developer
Posts: 192
Threads: 26
Joined: Mar 2011
#5
12-12-2012, 05:18 PM
Pretty sure it's update_folders/1

Take a look at wings_body.erl commands/2 for examples.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode