diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-09 04:57:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-09 04:57:47 +0400 |
commit | 9eca407a18d8c0109d67fa4feed837dfe97d2de1 (patch) | |
tree | a33a85e3cc020f6313c0d202cf072c1a63166741 /source/blender/editors/include/ED_physics.h | |
parent | 800f86c8454ced85c29d1dcb04dcb163689a89d3 (diff) |
Pressing Ctrl+R when blender was built without bullet would crash.
- add checks so rigid-body operators only return FINISHED when they make some changes to the scene.
- remove (scene == NULL) checks, poll already catches these.
Diffstat (limited to 'source/blender/editors/include/ED_physics.h')
-rw-r--r-- | source/blender/editors/include/ED_physics.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_physics.h b/source/blender/editors/include/ED_physics.h index 192bcd8f712..cb793cfd9f6 100644 --- a/source/blender/editors/include/ED_physics.h +++ b/source/blender/editors/include/ED_physics.h @@ -45,7 +45,7 @@ int PE_hair_poll(struct bContext *C); int PE_poll_view3d(struct bContext *C); /* rigidbody_object.c */ -void ED_rigidbody_ob_add(struct wmOperator *op, struct Scene *scene, struct Object *ob, int type); +bool ED_rigidbody_ob_add(struct wmOperator *op, struct Scene *scene, struct Object *ob, int type); void ED_rigidbody_ob_remove(struct Scene *scene, struct Object *ob); /* rigidbody_constraint.c */ |