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!
This commit is contained in:
Daniel Genrich
2009-10-09 13:34:24 +00:00
parent 3b8925c655
commit 105a53a29d

View File

@@ -1130,7 +1130,7 @@ static void view3d_panel_object(const bContext *C, Panel *pa)
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 @@ static void view3d_panel_object(const bContext *C, Panel *pa)
uiBlockEndAlign(block);
}
}
*/
lim= 10000.0f*MAX2(1.0, v3d->grid);