Revision: 16955
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16955
Author: broken
Date: 2008-10-07 00:39:06 +0200 (Tue, 07 Oct 2008)
Log Message:
-----------
* Fix for silly crash in point density UI, showed up in files with an existing
empty texture.
Modified Paths:
--------------
branches/sim_physics/source/blender/src/buttons_shading.c
Modified: branches/sim_physics/source/blender/src/buttons_shading.c
===================================================================
--- branches/sim_physics/source/blender/src/buttons_shading.c 2008-10-06
22:08:14 UTC (rev 16954)
+++ branches/sim_physics/source/blender/src/buttons_shading.c 2008-10-06
22:39:06 UTC (rev 16955)
@@ -803,7 +803,7 @@
uiDefIDPoinBut(block, test_obpoin_but, ID_OB, B_REDR,
"Ob:",
X2CLM2, yco-=BUTH, BUTW2, BUTH, &(pd->object),
"Object that has the particle system");
- if (pd->object->particlesystem.first) {
+ if (pd->object && pd->object->particlesystem.first) {
uiDefButS(block, NUM, B_REDR, "PSys:",
X2CLM2, yco-=BUTH, BUTW2, BUTH,
&(pd->psysindex), 1, 10, 10, 3, "Particle system number in the object");
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs