• 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
Custom properties for objects

 
  • 0 Vote(s) - 0 Average
Custom properties for objects

nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#1
05-08-2013, 05:18 PM
The #we record contains a field called pst. Is this field supposed to be used for storing plugin-specific data associated with an object?
Is the value lost for objects being added through the Combine operation? Is it duplicated through Separate?
dgud
Offline

Grumpy Dev
Posts: 692
Threads: 37
Joined: Nov 2012
#2
05-12-2013, 10:31 AM
Test or read the code :-)
I don't think anyone remembers that code, so you can figure it out by yourself just as easily as
we can.
micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#3
05-15-2013, 08:55 PM
(05-08-2013, 05:18 PM)nemyax Wrote: The #we record contains a field called pst. Is this field supposed to be used for storing plugin-specific data associated with an object?
yes.

Quote:Is the value lost for objects being added through the Combine operation? Is it duplicated through Separate?
As dgud said, you should try it out.

By checking the code, Combine uses wings_we:merge/1 that will merge all #we's pst values (merge_plugins/1), while Separate uses wings_weConfusedeparate/1 for create back all previous combined #wes, but it do nothing with that merged pst.
So, it's probable that all separated #we's can have the same pst data - that one assigned to the combined #we.
nemyax
Offline

Member

Posts: 128
Threads: 14
Joined: Nov 2012
#4
05-15-2013, 10:29 PM
Thanks. Certainly I will test it as soon as I get round to that particular to-do item. I was asking in case someone had the answer at their fingertips.
« 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