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:
-rw-r--r--source/blender/src/header_image.c4
-rw-r--r--source/blender/src/parametrizer.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index 990491a96d8..040d1e2757f 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -901,7 +901,7 @@ void image_buttons(void)
uiDefPulldownBut(block, image_viewmenu, NULL, "View", xco, -2, xmax-3, 24, "");
xco+= xmax;
- if((G.f & G_FACESELECT) && !(G.sima->flag & SI_DRAWTOOL)) {
+ if((G.f & G_FACESELECT) && !(ima && (G.sima->flag & SI_DRAWTOOL))) {
xmax= GetButStringLength("Select");
uiDefPulldownBut(block, image_selectmenu, NULL, "Select", xco, -2, xmax-3, 24, "");
xco+= xmax;
@@ -915,7 +915,7 @@ void image_buttons(void)
uiDefPulldownBut(block, image_imagemenu, NULL, menuname, xco, -2, xmax-3, 24, "");
xco+= xmax;
- if((G.f & G_FACESELECT) && !(G.sima->flag & SI_DRAWTOOL)) {
+ if((G.f & G_FACESELECT) && !(ima && (G.sima->flag & SI_DRAWTOOL))) {
xmax= GetButStringLength("UVs");
uiDefPulldownBut(block, image_uvsmenu, NULL, "UVs", xco, -2, xmax-3, 24, "");
xco+= xmax;
diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c
index 22acc210262..c3b31613dd9 100644
--- a/source/blender/src/parametrizer.c
+++ b/source/blender/src/parametrizer.c
@@ -4137,7 +4137,7 @@ void param_lscm_solve(ParamHandle *handle)
if (chart->u.lscm.context) {
result = p_chart_lscm_solve(chart);
- if (result)
+ if (result && !(chart->flag & PCHART_NOPACK))
p_chart_rotate_minimum_area(chart);
if (!result || (chart->u.lscm.pin1))