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:
authorMartin Poirier <theeth@yahoo.com>2005-05-29 13:57:51 +0400
committerMartin Poirier <theeth@yahoo.com>2005-05-29 13:57:51 +0400
commit0bd69e6616f59b8a4b02ba2ced46c24793b14be3 (patch)
tree04f4b4d6c14a54ef0b392b348ae8b3a8c2e21268
parentfad9e3b97923905f616dc050528c97b33a178d88 (diff)
Crash Fix: Mirror Tool crashed when there was no selection (stupid lack of check).
-rwxr-xr-xsource/blender/src/transform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 450f44c90a5..2d258c8e06e 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -2131,6 +2131,11 @@ void Mirror(short mode)
initConstraint(&Trans);
+ if (Trans.total == 0) {
+ postTrans(&Trans);
+ return;
+ }
+
size[0] = size[1] = size[2] = 1.0f;
td = Trans.data;