Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-09 04:57:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-09 04:57:47 +0400
commit9eca407a18d8c0109d67fa4feed837dfe97d2de1 (patch)
treea33a85e3cc020f6313c0d202cf072c1a63166741 /source/blender/editors/include/ED_physics.h
parent800f86c8454ced85c29d1dcb04dcb163689a89d3 (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.h2
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 */