Alexander Gavrilov angavrilov
  • Cyprus
  • Joined on 2015-08-20
Alexander Gavrilov commented on pull request blender/blender#104463 2023-11-02 13:55:47 +01:00
Shape Keys: support locking to protect from accidental editing.

Because I added init and changed operators that can use it to use it instead of begin.

Alexander Gavrilov commented on pull request blender/blender#104463 2023-11-02 13:55:16 +01:00
Shape Keys: support locking to protect from accidental editing.

See sculpt_gesture_apply below. I add init that is called before the undo push and thus can completely abort the operation. Begin like before is called after the base undo push, and thus…

Alexander Gavrilov commented on pull request blender/blender#104463 2023-11-02 13:52:15 +01:00
Shape Keys: support locking to protect from accidental editing.

The idea was to distinguish branching between types of sculpt tools, and the logic for the check. Basically the logic here is:

switch (type) {
case ...
default:
   if (!unlocked(...))…
Alexander Gavrilov commented on pull request blender/blender#104463 2023-11-02 13:34:38 +01:00
Shape Keys: support locking to protect from accidental editing.

For whatever reason that function will return null instead of the 0th (basis) key.

Alexander Gavrilov commented on pull request blender/blender#104463 2023-11-02 13:33:40 +01:00
Shape Keys: support locking to protect from accidental editing.

The function is not a query though, its point is to encapsulate emitting the warning message to avoid having to repeat it, so that operators that need the check can contain just:

if not…
Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-24 15:49:30 +02:00
b897fdce9a fix accessing whole array properties from python (allow negative index)
Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-24 15:09:13 +02:00
Drivers: implement fallback values for RNA path based variables.

s/into/to/ and rebased

Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-24 15:08:46 +02:00
f7f38d4b22 Drivers: implement fallback values for RNA path based variables.
eb7484a7db Drivers Editor: apply red underline to drivers that failed evaluation.
92a19747f0 Sculpt: Add timing information for BMesh PBVH
15692501b2 Merge branch 'blender-v4.0-release'
0f36ac4e66 Revert "Fix #112441: Restore Key Map Item does not restore the active property"
Compare 355 commits »
Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-20 15:28:28 +02:00
Drivers: implement fallback values for RNA path based variables.

One final change I'd like to see: rather than hiding the fallback checkbox etc. if the ID target isn't filled in, I think graying it out would be better. That makes it a little more discoverable…

Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-20 15:27:19 +02:00
Drivers: implement fallback values for RNA path based variables.

Converted to a switch.

Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-20 15:26:59 +02:00
Drivers: implement fallback values for RNA path based variables.

Tried yet another mix of wordings.

Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-20 15:22:38 +02:00
37c089ca8b refactor to use switch
aed1a11e54 tooltip tweak
Compare 2 commits »
Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-19 20:28:17 +02:00
Drivers: implement fallback values for RNA path based variables.

It was relying on side effects of driver_get_variable_property. I refactored it to return an enum value, and also do the index bounds check internally so that all fallback checking code is in…

Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-19 20:24:09 +02:00
3c16f132fb refactor driver_get_variable_property to return an enum and check bounds.
9418783e12 tooltip tweaks
Compare 2 commits »
Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-17 17:41:54 +02:00
Drivers: implement fallback values for RNA path based variables.

nullptr means default caption, while "" means no caption at all, so they are different.

Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-17 17:40:40 +02:00
f23d567a49 tweaks
Alexander Gavrilov pushed to pr-driver-var-default at angavrilov/blender 2023-10-16 17:17:27 +02:00
e6b81f0346 Drivers: implement fallback values for RNA path based variables.
686afb577c Drivers Editor: apply red underline to drivers that failed evaluation.
5f80242bc2 Cleanup: use CustomDataAttributes from Instances interface
d0342b1782 Cleanup: don't use CustomDataAttributes when realizing instances
640b0dd6da Cleanup: Remove redundant flag setting in RNA_def_property
Compare 1537 commits »
Alexander Gavrilov commented on pull request blender/blender#110135 2023-10-16 16:39:50 +02:00
Drivers: implement fallback values for RNA path based variables.
  • The fallback option seems to only exist for Single Property and Context Property variable types. I think that's probably fine for now, but maybe that could be added in a follow up PR, for…
Alexander Gavrilov pushed to main at blender/blender-addons 2023-10-15 18:25:55 +02:00
143deee0f2 Merge branch 'blender-v4.0-release'
f0c3d11ef5 Rigify: disable action slot target space settings other than World & Local.
25a86d2504 Import_3ds: Added percent to bump texture
afbd0c18b9 Import_3ds: Connect texture to factor if two tintcolors are present
ddc9ecd46f UI Translations: fix add-on translation export
Compare 6 commits »
Alexander Gavrilov pushed to blender-v4.0-release at blender/blender-addons 2023-10-15 18:25:10 +02:00
f0c3d11ef5 Rigify: disable action slot target space settings other than World & Local.