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:
authorGermano Cavalcante <germano.costa@ig.com.br>2020-06-10 22:36:07 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-06-10 22:36:16 +0300
commit04390941050b1b790cbe812e9a8867cb56c93565 (patch)
tree26f31b8438303f5581bc902274a853eddc419742 /source/blender/editors/transform/transform_mode.c
parentbfa5eceb89cfc1d9f120c35e2206464c31630111 (diff)
Cleanup: make the sculpt convert type follow transform convention
Diffstat (limited to 'source/blender/editors/transform/transform_mode.c')
-rw-r--r--source/blender/editors/transform/transform_mode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c
index c2c880b03ff..e1fd22f06be 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -46,6 +46,7 @@
#include "BLT_translation.h"
#include "transform.h"
+#include "transform_convert.h"
#include "transform_snap.h"
/* Own include. */
@@ -937,7 +938,7 @@ void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float ma
if (td->ext && td->ext->size) {
float fsize[3];
- if ((t->options & CTX_SCULPT) || t->flag & (T_OBJECT | T_TEXTURE | T_POSE)) {
+ if (ELEM(t->data_type, TC_SCULPT, TC_OBJECT, TC_OBJECT_TEXSPACE, TC_POSE)) {
float obsizemat[3][3];
/* Reorient the size mat to fit the oriented object. */
mul_m3_m3m3(obsizemat, tmat, td->axismtx);