missing args for rna funciton. comment on rna leak with type registering that I haven't been able to fix yet.
This commit is contained in:
@@ -1209,7 +1209,7 @@ void RNA_def_material(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "emit", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 2.0f);
|
||||
RNA_def_property_ui_range(prop, 0, 2.0f, 10, 2);
|
||||
RNA_def_property_ui_text(prop, "Emit", "Amount of light to emit.");
|
||||
RNA_def_property_update(prop, NC_MATERIAL|ND_SHADING, NULL);
|
||||
|
||||
|
||||
@@ -3085,6 +3085,16 @@ void pyrna_free_types(void)
|
||||
RNA_PROP_END;
|
||||
}
|
||||
|
||||
/* Note! MemLeak XXX
|
||||
*
|
||||
* There is currently a bug where moving registering a python class does
|
||||
* not properly manage refcounts from the python class, since the srna owns
|
||||
* the python class this should not be so tricky but changing the references as
|
||||
* youd expect when changing ownership crashes blender on exit so I had to comment out
|
||||
* the decref. This is not so bad because the leak only happens when re-registering (hold F8)
|
||||
* - Should still be fixed - Campbell
|
||||
* */
|
||||
|
||||
PyObject *pyrna_basetype_register(PyObject *self, PyObject *py_class)
|
||||
{
|
||||
bContext *C= NULL;
|
||||
|
||||
Reference in New Issue
Block a user