Jump to content

Multiple objects removes parameter value


Recommended Posts

Hi!

I'm writing a SIM_Solver.

The problem I have is that parameters that is set when only one object is connected to my solver goes back to default when more objects are connected.

Pseudo:

PRM_Template(PRM_TOGGLE, 1, &themyParmName, PRMoneDefaults) is added to templates and shown in the node parameters as a checkbox.

GETSET_DATA_FUNCS_B(SIM_NAME_MYPARM, MyParm) is set and the get-functions is working by getMyParm().

When I use getMyParm() in solveObjectsSubclass() it returns the parameter value of 0 or 1.

When I run the solver with ONE object the correct value is returned from getMyParm().

When I run the solver with TWO or more objects, the default value is always shown.

I've tried to copy as much I can from SIM_SolverODE regarding this but haven't been able to make it work. Any tips?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...