UV: Update ui for pack islands operator #108253

Merged
Chris Blackbourn merged 3 commits from Chris_Blackbourn/blender:uv-pack-islands-ui into blender-v3.6-release 2023-06-01 01:45:14 +02:00

No response

_No response_
Chris Blackbourn added 1 commit 2023-05-25 05:08:46 +02:00
Author
Member

Before:
image
After 40bb54fc5f
image

Before: ![image](/attachments/955fdcb7-3856-46bc-8018-076a53d468c3) After 40bb54fc5f ![image](/attachments/a87cc8e9-f435-4e78-aabe-788e1c4ee909)
Brecht Van Lommel requested review from Pablo Vazquez 2023-05-30 18:45:09 +02:00
Brecht Van Lommel reviewed 2023-05-30 18:56:29 +02:00
@ -1609,2 +1618,3 @@
"Locked Rotation and Scale",
"Pinned islands will translate only"},
{ED_UVPACK_PIN_LOCK_ALL, "LOCKED", 0, "Locked position", "Pinned islands are locked in place"},
{ED_UVPACK_PIN_LOCK_ALL, "LOCKED", 0, "Locked Position", "Pinned islands are locked in place"},

Follow convention for tense:

Ignored -> Ignore
Locked Scale -> Lock Scale
...

Make identifier match label:

SCALE -> LOCK_SCALE
ROTATION -> LOCK_ROTATION
...

This seems like it would rotate and scale in place, seems more clear like:

Locked Position -> Lock in Place
Follow convention for tense: ``` Ignored -> Ignore Locked Scale -> Lock Scale ... ``` Make identifier match label: ``` SCALE -> LOCK_SCALE ROTATION -> LOCK_ROTATION ... ``` This seems like it would rotate and scale in place, seems more clear like: ``` Locked Position -> Lock in Place ```
Chris_Blackbourn marked this conversation as resolved
@ -1669,10 +1712,11 @@ void UV_OT_pack_islands(wmOperatorType *ot)
"");

Merge Overlapped -> Merge Overlapping

Merge Overlapped -> Merge Overlapping
Chris_Blackbourn marked this conversation as resolved
@ -1669,10 +1712,11 @@ void UV_OT_pack_islands(wmOperatorType *ot)
"");
RNA_def_float_factor(
ot->srna, "margin", 0.001f, 0.0f, 1.0f, "Margin", "Space between islands", 0.0f, 1.0f);
RNA_def_boolean(ot->srna, "pin", false, "Pin", "Pinned islands are handled differently");

I don't understand the purpose of this boolean, "handled differently" doesn't explain what leaving this disabled does.

I suggest to remove this boolean, and instead to rename the Default method to Pack, and then have options in this order:

Pack
Lock in Place
Lock Rotation
Lock Scale
Lock Rotation and Scale
Ignore
I don't understand the purpose of this boolean, "handled differently" doesn't explain what leaving this disabled does. I suggest to remove this boolean, and instead to rename the Default method to Pack, and then have options in this order: ``` Pack Lock in Place Lock Rotation Lock Scale Lock Rotation and Scale Ignore ```
Chris_Blackbourn marked this conversation as resolved
Brecht Van Lommel requested changes 2023-05-30 18:59:01 +02:00
Brecht Van Lommel left a comment
Owner

This is a nice improvement, only the pinning is still confusing to me.

This is a nice improvement, only the pinning is still confusing to me.

This could also use some separators (uiItemS(layout)) to more easily scan the options. I suggest:

Shape Method
Scale
Rotate
Rotation Method

Margin Method
Margin

Pinned Islands

Merge Overlapping

Pack to
This could also use some separators (`uiItemS(layout)`) to more easily scan the options. I suggest: ``` Shape Method Scale Rotate Rotation Method Margin Method Margin Pinned Islands Merge Overlapping Pack to ```
Chris Blackbourn added 1 commit 2023-05-31 00:05:04 +02:00
Author
Member

After b3cb89e637

image
image

After https://projects.blender.org/blender/blender/commit/b3cb89e63783b00dbe908caf9835bb220bbd7745 ![image](/attachments/1bb5f3ef-dbbe-4621-ab0c-ff3a54aedc1d) ![image](/attachments/3edc6952-d6a7-4646-858a-3c5a6ff21510)
Brecht Van Lommel approved these changes 2023-05-31 01:08:17 +02:00
Brecht Van Lommel left a comment
Owner

Nitpicking:

  • I would put Ignore last in the list since to me it's different than the other options, so does not make much sense to be between them.
  • Seeing it now, maybe the separators between Pinned Islands, Merge Overlapping, Pack to are too much, could be removed again.
Nitpicking: * I would put Ignore last in the list since to me it's different than the other options, so does not make much sense to be between them. * Seeing it now, maybe the separators between Pinned Islands, Merge Overlapping, Pack to are too much, could be removed again.
Author
Member

image
image
Will squash and commit tomorrow so we can hear from @pablovazquez ?

![image](/attachments/aa69958f-06e8-48a0-a63a-b9d82c140d5f) ![image](/attachments/816a55b6-b090-4967-ac83-326a0c5bc08f) Will squash and commit tomorrow so we can hear from @pablovazquez ?
Chris Blackbourn added 1 commit 2023-05-31 01:58:52 +02:00
Brecht Van Lommel approved these changes 2023-05-31 09:41:52 +02:00
Chris Blackbourn merged commit f87f119c2f into blender-v3.6-release 2023-06-01 01:45:14 +02:00
Chris Blackbourn deleted branch uv-pack-islands-ui 2023-06-01 01:45:15 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108253
No description provided.