[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23739] trunk/blender/source/blender/ editors/space_view3d/view3d_buttons.c: Bugfix for crash when clicking on " View->Properties".
Daniel Genrich
daniel.genrich at gmx.net
Fri Oct 9 15:34:24 CEST 2009
Revision: 23739
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23739
Author: genscher
Date: 2009-10-09 15:34:24 +0200 (Fri, 09 Oct 2009)
Log Message:
-----------
Bugfix for crash when clicking on "View->Properties". Was accessing unused memory here (uiBlock *block is uninitialized).
If there is the need of uiBlockEndAlign() please get the valid uiBlock pointer from somewhere!
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
Modified: trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c 2009-10-09 13:25:54 UTC (rev 23738)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c 2009-10-09 13:34:24 UTC (rev 23739)
@@ -1130,7 +1130,7 @@
tfp= v3d->properties_storage;
// XXX uiSetButLock(object_is_libdata(ob), ERROR_LIBDATA_MESSAGE);
-
+ /*
if(ob->mode & (OB_MODE_VERTEX_PAINT|OB_MODE_WEIGHT_PAINT|OB_MODE_TEXTURE_PAINT)) {
}
else {
@@ -1138,6 +1138,7 @@
uiBlockEndAlign(block);
}
}
+ */
lim= 10000.0f*MAX2(1.0, v3d->grid);
More information about the Bf-blender-cvs
mailing list