Vitalii-2
  • Joined on 2023-12-24
Vitalii-2 commented on issue blender/blender#129699 2024-11-03 20:33:34 +01:00
Python: declaring __init__ for an operator causes RuntimeError

I see. As long as it is an acknowledged behavior. Because on surface it looks like a bug of the sneaky variety.

Vitalii-2 commented on issue blender/blender#129699 2024-11-03 19:53:15 +01:00
Python: declaring __init__ for an operator causes RuntimeError

I tried the exact same code in 4.2.2 LTS, and got only one printout per operator call. This would mean the second printout in 4.4 is related to new changes to how how overriding __init__ now…

Vitalii-2 commented on issue blender/blender#129699 2024-11-03 18:40:50 +01:00
Python: declaring __init__ for an operator causes RuntimeError

i tried the suggested __init__ in the form of

    def __init__(self, *args, **kwargs): 
        super().__init__(*args, **kwargs)
        print('creating operator')```

and is
Vitalii-2 commented on issue blender/blender#129699 2024-11-03 18:10:39 +01:00
Python: declaring __init__ for an operator causes RuntimeError

i see. will the error and it's cause at least be acknowledged in docs?

Vitalii-2 commented on issue blender/blender#129699 2024-11-03 17:55:50 +01:00
Python: declaring __init__ for an operator causes RuntimeError

Aaaaah my bad, I did not update the documentation (and release notes) yet :(

Will do tomorrow, but in a nutshell, Blender now requires that you call the parent class' __init__ and/or…

Vitalii-2 commented on issue blender/blender#129699 2024-11-02 08:00:04 +01:00
Python: declaring __init__ for an operator causes RuntimeError

Confirmed - the file above doesn't have the script but you can recreate it using the "Operator Simple" template and add your own __init__ method. This worked until relatively recently.

that'…

Vitalii-2 opened issue blender/blender#129699 2024-11-01 21:00:50 +01:00
Python: declaring __init__ for an operator causes RuntimeError
Vitalii-2 commented on issue blender/blender#125187 2024-08-21 07:36:40 +02:00
Python: EnumProperty get/set

I'm not sure why the second example throws (note that it doesn't in 3.6).

The second example now throwing is the reason for this report. I just wasn't unclear which blender version does it…

Vitalii-2 commented on issue blender/blender#125187 2024-08-20 20:00:12 +02:00
Python: EnumProperty get/set

My understanding is the property obj.propname uses the custom prop obj['propname'] as the low-level store for its data. The custom prop does not know about the higher-level property;…

Vitalii-2 opened issue blender/blender#126521 2024-08-19 19:48:03 +02:00
Changing enum props in redo menu doesn't update the menu not updating redo menu popup
Vitalii-2 commented on issue blender/blender#125187 2024-08-16 08:47:33 +02:00
Python: EnumProperty get/set

The first access exception is both expected and not. The syntax for defining properties has an optional argument of default. If it's not set, then yes, an exception when property is access…

Vitalii-2 opened issue blender/blender#125187 2024-07-21 19:39:57 +02:00
Python: EnumProperty get/set
Vitalii-2 commented on issue blender/blender#119348 2024-03-21 15:51:18 +01:00
Regression: Python: Objects loaded from blend files have default matrices before depsgraph update

Outside of python scripts that process object transforms before depsgraph update, the part of blender that relies on those matrices not being degenerate is bpy.ops.object.add_named() used to…

Vitalii-2 commented on issue blender/blender#119250 2024-03-13 14:29:53 +01:00
Regression: Python: World matrix for newly created objects is not identity

@HooglyBoogly This may have caused this error (pic below), I fixed it in 39f3ea4ab0

[c0f374ec3e3](https…

Vitalii-2 opened issue blender/blender#119348 2024-03-11 22:14:03 +01:00
Regrssion: Python: Objects loaded from blend files have default matrices before depsgraph update
Vitalii-2 commented on issue blender/blender#119250 2024-03-11 21:06:42 +01:00
Regression: Python: World matrix for newly created objects is not identity

while that does address issue for new objects. it doesn't address issue of objects loaded from blend files via python to have default matrices prior update (reported by first comment), which…

Vitalii-2 commented on issue blender/blender#119250 2024-03-10 18:34:41 +01:00
Regression: Python: World matrix for newly created objects is not identity

I can confirm that git bisect shows that 1c0f374ec3e3 is the first bad commit.

so what I understood from commit's description is that blender no longer updates object matrices outside of…

Vitalii-2 opened issue blender/blender#119250 2024-03-09 14:21:01 +01:00
Regression, Python: world matrix for newly created objects is not identity
Vitalii-2 commented on issue blender/blender#116506 2023-12-26 21:34:03 +01:00
Crash when Redo an operator that calls 'context.copy()'

here is a video of the crash using daily 4.0.3. the crash happens on second redo, when the panel is brought up via hotkey (F9).

Vitalii-2 opened issue blender/blender#116506 2023-12-24 09:46:42 +01:00
context.copy()