Fix #36302: Multires baking to zero 0 was showing error but still was baking
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 31 Jul 2013 03:35:45 +0000 (03:35 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 31 Jul 2013 03:35:45 +0000 (03:35 +0000)
We do not support baking to level 0, disabled this completely now.

source/blender/editors/object/object_bake.c

index 3f1ceb7327c9c7b7611d7e02ede22d2d417cab08..9e62781bce1f73ccc29dc37f744db01569a43cd9 100644 (file)
@@ -153,7 +153,7 @@ static int multiresbake_check(bContext *C, wmOperator *op)
 
                if (mmd->lvl == 0) {
                        BKE_report(op->reports, RPT_ERROR, "Multires data baking is not supported for preview subdivision level 0");
-
+                       ok = 0;
                        break;
                }