forked from bartvdbraak/blender
Logic Editor: bugfix for "Unable to Add Controllers sometimes" (reported in IRC by Daniel Salazar (ZanQdo)
What was happening; if the old code (2.49) was changing the status from 0 to 1 inside the interface code. e.g. if (!ob->status) ob->status = 1; Initializing it properly (in blenkernel) and making sure the new status is ever 0 (in rna_object.c) should fix it. And yes, the log is bigger than the patch !
This commit is contained in:
parent
668a5156cd
commit
3e56c4dda1
@ -1026,6 +1026,8 @@ Object *add_only_object(int type, char *name)
|
||||
ob->anisotropicFriction[2] = 1.0f;
|
||||
ob->gameflag= OB_PROP|OB_COLLISION;
|
||||
ob->margin = 0.0;
|
||||
ob->init_state=1;
|
||||
ob->state=1;
|
||||
/* ob->pad3 == Contact Processing Threshold */
|
||||
ob->m_contactProcessingThreshold = 1.;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user