diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-16 08:59:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-16 08:59:11 +0400 |
commit | 128cf1522453c8f800d31fd663ac9027f56ec151 (patch) | |
tree | de00474b0d1a1bf519525a626dd81eb73924b673 /source/blender | |
parent | b1166492e2921feba2d2bd2e77ce492507600ad7 (diff) |
missing args for rna funciton. comment on rna leak with type registering that I haven't been able to fix yet.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index 239055f6416..6f0a19b7aa9 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -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); diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index ac6934a6d55..1d6728e806a 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -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; |