UI: Modifier Property Icons #113793

Merged
Harley Acheson merged 4 commits from Harley/blender:UVProjectIcon into main 2023-10-18 18:59:20 +02:00
Member

Add icons to some Modifier properties.

For example, changes this...

image

to this:

image

Add icons to some Modifier properties. --- For example, changes this... ![image](/attachments/2921d85e-c621-41d0-917f-6bc4ed8df052) to this: ![image](/attachments/00f6455f-b642-4441-a587-f453831dd26c)
Harley Acheson added 1 commit 2023-10-17 01:22:09 +02:00
b0dbdc8ad9 UI: UVProject Modifier UV Map Icon
In the UVProject Modifier change the UV Map icon from a dot to
ICON_GROUP_UVS.
Harley Acheson added this to the User Interface project 2023-10-17 01:22:21 +02:00
Harley Acheson requested review from Pablo Vazquez 2023-10-17 01:22:36 +02:00
Member

Maybe this could become a more general task to cover other inputs missing the GROUP_UVS icon too?

Other modifiers that are missing the UV icon:

  • UV Warp
  • Warp
  • Explode (Particle UV)
    image
  • Displace (when set to UV coordinates)
    displace

Other places I found on a quick look:

  • UV Map node (shading)
    uvmap node

  • Dynamic Paint's Initial Color when using UV Texture
    dynpaint

  • Fluid's Texture panel
    flow

  • Texture settings in the Mapping panel
    image

I can also try and do this myself if you are busy, it's just digging around and looking for that one line in other places.

Maybe this could become a more general task to cover other inputs missing the `GROUP_UVS` icon too? Other modifiers that are missing the UV icon: * UV Warp * Warp * Explode (Particle UV) ![image](/attachments/3195d177-b684-4dbb-bc40-e58b4aff155d) * Displace (when set to UV coordinates) ![displace](/attachments/7b1919b8-d7b6-484d-98d8-9a3c431f9901) Other places I found on a quick look: * UV Map node (shading) ![uvmap node](/attachments/4736de6e-e956-47a4-b61a-8fbb7d9aeb5b) * Dynamic Paint's Initial Color when using UV Texture ![dynpaint](/attachments/51cd48e6-99f7-4086-9786-b0e16c4f6d35) * Fluid's Texture panel ![flow](/attachments/f11e3578-9d66-496f-b155-1bf784f4ea27) * Texture settings in the Mapping panel ![image](/attachments/0d71e1f3-6467-4a18-84ab-1dafde912138) I can also try and do this myself if you are busy, it's just digging around and looking for that one line in other places.
Author
Member

I can also try and do this myself if you are busy, it's just digging around and looking for that one line in other places.

Let me add some first. I think I can now see all the ones missing in the modifiers areas (lines containing both "uiItemPointerR" and ICON_NONE within source\blender\modifiers).

> I can also try and do this myself if you are busy, it's just digging around and looking for that one line in other places. Let me add some first. I think I can now see all the ones missing in the modifiers areas (lines containing both "uiItemPointerR" and ICON_NONE within source\blender\modifiers).
Harley Acheson changed title from UI: UVProject Modifier UV Map Icon to WIP UI: Modifier Property Icons 2023-10-17 19:24:41 +02:00
Harley Acheson added 1 commit 2023-10-17 20:46:23 +02:00
Author
Member

@pablovazquez

Okay, this PR should now fix all those icons in the modifiers. However, I (so far) can't find your other two examples, UV Map node and the Texture settings in the Mapping panel.

@pablovazquez Okay, this PR should now fix all those icons in the modifiers. However, I (so far) can't find your other two examples, UV Map node and the Texture settings in the Mapping panel.
Harley Acheson changed title from WIP UI: Modifier Property Icons to UI: Modifier Property Icons 2023-10-17 21:45:05 +02:00
Pablo Vazquez requested changes 2023-10-18 12:22:03 +02:00
Pablo Vazquez left a comment
Member

Only the change to use BONE_DATA instead of GROUP_BONE.

Only the change to use `BONE_DATA` instead of `GROUP_BONE`.
@ -269,3 +269,3 @@
if (!RNA_pointer_is_null(&warp_obj_ptr) && RNA_enum_get(&warp_obj_ptr, "type") == OB_ARMATURE) {
PointerRNA warp_obj_data_ptr = RNA_pointer_get(&warp_obj_ptr, "data");
uiItemPointerR(col, ptr, "bone_from", &warp_obj_data_ptr, "bones", nullptr, ICON_NONE);
uiItemPointerR(col, ptr, "bone_from", &warp_obj_data_ptr, "bones", nullptr, ICON_GROUP_BONE);
Member

This and all other uses of GROUP_BONE should be BONE_DATA. Since what the list shows is a single bone, not a group of bones (which are now called Bone Collections).

This and all other uses of `GROUP_BONE` should be `BONE_DATA`. Since what the list shows is a single bone, not a group of bones (which are now called Bone Collections).
Harley marked this conversation as resolved
Harley Acheson added 2 commits 2023-10-18 17:40:03 +02:00
Author
Member

@pablovazquez - This and all other uses of GROUP_BONE should be BONE_DATA

Thanks for checking. Done.

> @pablovazquez - This and all other uses of GROUP_BONE should be BONE_DATA Thanks for checking. Done.
Pablo Vazquez approved these changes 2023-10-18 18:11:09 +02:00
Harley Acheson merged commit 96c7cac549 into main 2023-10-18 18:59:20 +02:00
Harley Acheson deleted branch UVProjectIcon 2023-10-18 18:59:22 +02:00
Sign in to join this conversation.
No reviewers
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#113793
No description provided.