Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
BL22: C methods and properties typed from the bindings' own C source (tools/cret.sh)
shinyobjectz95cccb4af5a4
diff --git a/docs/blender.feature b/docs/blender.featureindex 8cb74a6d..7c2af272 100644--- a/docs/blender.feature+++ b/docs/blender.feature@@ -90,11 +90,15 @@ Feature: Blender as a measured workshop step: an asset passes through it on itsScenario: BL22. The whole API is typed from Blender's own: tools/gen.sh dumps Blender's RNA and docstrings, gen writes src/genGiven Blender 5.2.1: 1809 structs (bpy.types), 2498 operators in 77 bpy.ops modules, and 41 modules outside RNA(mathutils' submodules, bmesh, gpu, bpy.utils, bpy.path, bpy.props, bpy.msgbus, bpy_extras, aud, imbuf, idprop)- Then 68 of bpy.types' 16 684 declarations are typed `any` (0.4%; 127 before 11-11): Python methods that return a+ Then 51 of bpy.types' 16 684 declarations are typed `any` (0.3%; 127 before 11-11): Python methods that return avalue their docstring doesn't type, and Python properties with no `:type:`. A function written in Python whosesource returns no value anywhere (dump.py returns_none) returns nothing, as Python's None, and operators have no- `any` at all; the modules outside RNA have 423 of 1 461, mostly C methods whose docstrings give no type- (bmesh.types, gpu.types, aud)+ `any` at all; the modules outside RNA have 104 of 1 461 (423 before 11-11), mostly Python helpers in bpy_extras+ and bpy.utils and bpy.props' property definitions+ And where a C method's or property's docstring gives no type, tools/cret.sh reads it from the bindings' own C+ source (tools/cret.json: 274 method and 122 property names, each where every C function bound to that name+ agrees): None, bool, int, float, str, or a tuple a Py_BuildValue format makes; test/cret.test.ts reads every+ property so typed on live bmesh, aud, imbuf and mathutils objects in Blender and gets that type (11-11)And two dumps of one Blender write the same src/gen (sets sorted, no memory addresses)And tsc rejects a read-only property set, an enum value Blender doesn't have, a member that isn't there, a wrongargument type, and arithmetic on an unawaited path (test/typing.ts)diff --git a/sdk/blender/src/gen/api/bpy.ts b/sdk/blender/src/gen/api/bpy.tsindex 8ff3d94b..b35ad9bc 100644--- a/sdk/blender/src/gen/api/bpy.ts+++ b/sdk/blender/src/gen/api/bpy.ts@@ -655,7 +655,7 @@ export interface App_icons {* Release the icon.* @param icon_id The icon id to release.*/- release(icon_id: H.In<number>): any;+ release(icon_id: H.In<number>): H.Ref<void>;/*** Release the icon.* @param icon_id The icon id to release.@@ -663,7 +663,7 @@ export interface App_icons {release(kw: {/** The icon id to release. */icon_id: H.In<number>;- }): any;+ }): H.Ref<void>;}export interface App_timers {@@ -695,7 +695,7 @@ export interface App_timers {first_interval?: H.In<number>;/** Don't remove timer when a new file is loaded. */persistent?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Add a new function that will be called after the specified amount of seconds.* The function gets no arguments and is expected to return either None or a float.@@ -711,12 +711,12 @@ export interface App_timers {first_interval?: H.In<number>;/** Don't remove timer when a new file is loaded. */persistent?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Unregister timer.* @param function_ Function to unregister.*/- unregister(function_: any): any;+ unregister(function_: any): H.Ref<void>;/*** Unregister timer.* @param function_ Function to unregister.@@ -724,7 +724,7 @@ export interface App_timers {unregister(kw: {/** Function to unregister. */function: any;- }): any;+ }): H.Ref<void>;}/** bpy.types: the classes (bpy.types.Object, ...), for isinstance, their bl_rna, and properties added to them (bpy.types.Object.my = bpy.props.FloatProperty()). */diff --git a/sdk/blender/src/gen/py/aud.ts b/sdk/blender/src/gen/py/aud.tsindex b0aaf36d..edd2f781 100644--- a/sdk/blender/src/gen/py/aud.ts+++ b/sdk/blender/src/gen/py/aud.ts@@ -208,14 +208,14 @@ export interface AnimateableProperty {* If `position` is also given, the property is marked animated and* the values are written starting at `position`.*/- write(): any;+ write(): H.Ref<void>;/*** Fills the properties frame range with a constant value and marks it animated.* @param data numpy array of float values representing the constant value.* @param position_start The start position in frames.* @param position_end The end position in frames.*/- writeConstantRange(data: any, position_start: H.In<number>, position_end: H.In<number>): any;+ writeConstantRange(data: any, position_start: H.In<number>, position_end: H.In<number>): H.Ref<void>;/*** Fills the properties frame range with a constant value and marks it animated.* @param data numpy array of float values representing the constant value.@@ -229,13 +229,13 @@ export interface AnimateableProperty {position_start: H.In<number>;/** The end position in frames. */position_end: H.In<number>;- }): any;+ }): H.Ref<void>;/** The count of floats for a property. */- get count(): any;- set count(v: any);+ get count(): H.Ref<number>;+ set count(v: H.In<number>);/** Whether the property is animated. */- get animated(): any;- set animated(v: any);+ get animated(): H.Ref<boolean>;+ set animated(v: H.In<boolean>);}/** The class aud.AnimateableProperty: called, a new one. */export interface AnimateablePropertyClass {@@ -269,7 +269,7 @@ export interface Device {* Make sure the time between locking and unlocking is* as short as possible to avoid clicks.*/- lock(...args: any[]): any;+ lock(...args: any[]): H.Ref<void>;/*** Plays a sound.* @returns The playback handle with which playback can be@@ -303,52 +303,52 @@ export interface Device {keep?: H.In<boolean>;}): H.Ptr<P.aud.Handle>;/** Stops all playing and paused sounds. */- stopAll(...args: any[]): any;+ stopAll(...args: any[]): H.Ref<void>;/*** Unlocks the device after a lock call, see :meth:`lock` for* details.*/- unlock(...args: any[]): any;+ unlock(...args: any[]): H.Ref<void>;/** The channel count of the device. */- get channels(): any;- set channels(v: any);+ get channels(): H.Ref<number>;+ set channels(v: H.In<number>);/*** The distance model of the device.** .. seealso:: `OpenAL Documentation <https://www.openal.org/documentation/>`__*/- get distance_model(): any;- set distance_model(v: any);+ get distance_model(): H.Ref<number>;+ set distance_model(v: H.In<number>);/*** The doppler factor of the device.* This factor is a scaling factor for the velocity vectors in doppler calculation. So a value bigger than 1 will exaggerate the effect as it raises the velocity.*/- get doppler_factor(): any;- set doppler_factor(v: any);+ get doppler_factor(): H.Ref<number>;+ set doppler_factor(v: H.In<number>);/** The native sample format of the device. */- get format(): any;- set format(v: any);+ get format(): H.Ref<number>;+ set format(v: H.In<number>);/** The listeners's location in 3D space, a 3D tuple of floats. */- get listener_location(): any;- set listener_location(v: any);+ get listener_location(): H.Ref<[number, number, number]>;+ set listener_location(v: H.In<readonly [number, number, number]>);/** The listener's orientation in 3D space as quaternion, a 4 float tuple. */- get listener_orientation(): any;- set listener_orientation(v: any);+ get listener_orientation(): H.Ref<[number, number, number, number]>;+ set listener_orientation(v: H.In<readonly [number, number, number, number]>);/** The listener's velocity in 3D space, a 3D tuple of floats. */- get listener_velocity(): any;- set listener_velocity(v: any);+ get listener_velocity(): H.Ref<[number, number, number]>;+ set listener_velocity(v: H.In<readonly [number, number, number]>);/** The sampling rate of the device in Hz. */- get rate(): any;- set rate(v: any);+ get rate(): H.Ref<number>;+ set rate(v: H.In<number>);/*** The speed of sound of the device.* The speed of sound in air is typically 343.3 m/s.*/- get speed_of_sound(): any;- set speed_of_sound(v: any);+ get speed_of_sound(): H.Ref<number>;+ set speed_of_sound(v: H.In<number>);/** The overall volume of the device. */- get volume(): any;- set volume(v: any);+ get volume(): H.Ref<number>;+ set volume(v: H.In<number>);}/** The class aud.Device: called, a new one. */export interface DeviceClass {@@ -448,20 +448,20 @@ export interface DynamicMusic {*/stop(...args: any[]): H.Ref<boolean>;/** Whether the scene is playing, paused or stopped (=invalid). */- get status(): any;- set status(v: any);+ get status(): H.Ref<boolean>;+ set status(v: H.In<boolean>);/** The playback position of the scene in seconds. */- get position(): any;- set position(v: any);+ get position(): H.Ref<number>;+ set position(v: H.In<number>);/** The length in seconds of the crossfade transition */- get fadeTime(): any;- set fadeTime(v: any);+ get fadeTime(): H.Ref<number>;+ set fadeTime(v: H.In<number>);/** The current scene */- get scene(): any;- set scene(v: any);+ get scene(): H.Ref<number>;+ set scene(v: H.In<number>);/** The volume of the scene. */- get volume(): any;- set volume(v: any);+ get volume(): H.Ref<number>;+ set volume(v: H.In<number>);}/** The class aud.DynamicMusic: called, a new one. */export interface DynamicMusicClass {@@ -575,93 +575,93 @@ export interface Handle {** .. seealso:: :attr:`Device.distance_model`*/- get attenuation(): any;- set attenuation(v: any);+ get attenuation(): H.Ref<number>;+ set attenuation(v: H.In<number>);/*** The opening angle of the inner cone of the source. If the cone values of a source are set there are two (audible) cones with the apex at the :attr:`location` of the source and with infinite height, heading in the direction of the source's :attr:`orientation`.* In the inner cone the volume is normal. Outside the outer cone the volume will be :attr:`cone_volume_outer` and in the area between the volume will be interpolated linearly.*/- get cone_angle_inner(): any;- set cone_angle_inner(v: any);+ get cone_angle_inner(): H.Ref<number>;+ set cone_angle_inner(v: H.In<number>);/*** The opening angle of the outer cone of the source.** .. seealso:: :attr:`cone_angle_inner`*/- get cone_angle_outer(): any;- set cone_angle_outer(v: any);+ get cone_angle_outer(): H.Ref<number>;+ set cone_angle_outer(v: H.In<number>);/*** The volume outside the outer cone of the source.** .. seealso:: :attr:`cone_angle_inner`*/- get cone_volume_outer(): any;- set cone_volume_outer(v: any);+ get cone_volume_outer(): H.Ref<number>;+ set cone_volume_outer(v: H.In<number>);/*** The maximum distance of the source.* If the listener is further away the source volume will be 0.** .. seealso:: :attr:`Device.distance_model`*/- get distance_maximum(): any;- set distance_maximum(v: any);+ get distance_maximum(): H.Ref<number>;+ set distance_maximum(v: H.In<number>);/*** The reference distance of the source.* At this distance the volume will be exactly :attr:`volume`.** .. seealso:: :attr:`Device.distance_model`*/- get distance_reference(): any;- set distance_reference(v: any);+ get distance_reference(): H.Ref<number>;+ set distance_reference(v: H.In<number>);/*** Whether the sound should be kept paused in the device when its end is reached.* This can be used to seek the sound to some position and start playback again.** .. warning:: If this is set to true and you forget stopping this equals a memory leak as the handle exists until the device is destroyed.*/- get keep(): any;- set keep(v: any);+ get keep(): H.Ref<boolean>;+ set keep(v: H.In<boolean>);/** The source's location in 3D space, a 3D tuple of floats. */- get location(): any;- set location(v: any);+ get location(): H.Ref<[number, number, number]>;+ set location(v: H.In<readonly [number, number, number]>);/** The (remaining) loop count of the sound. A negative value indicates infinity. */- get loop_count(): any;- set loop_count(v: any);+ get loop_count(): H.Ref<number>;+ set loop_count(v: H.In<number>);/** The source's orientation in 3D space as quaternion, a 4 float tuple. */- get orientation(): any;- set orientation(v: any);+ get orientation(): H.Ref<[number, number, number, number]>;+ set orientation(v: H.In<readonly [number, number, number, number]>);/** The pitch of the sound. */- get pitch(): any;- set pitch(v: any);+ get pitch(): H.Ref<number>;+ set pitch(v: H.In<number>);/** The playback position of the sound in seconds. */- get position(): any;- set position(v: any);+ get position(): H.Ref<number>;+ set position(v: H.In<number>);/** Whether the source's location, velocity and orientation is relative or absolute to the listener. */- get relative(): any;- set relative(v: any);+ get relative(): H.Ref<boolean>;+ set relative(v: H.In<boolean>);/** Whether the sound is playing, paused or stopped (=invalid). */- get status(): any;- set status(v: any);+ get status(): H.Ref<boolean>;+ set status(v: H.In<boolean>);/** The source's velocity in 3D space, a 3D tuple of floats. */- get velocity(): any;- set velocity(v: any);+ get velocity(): H.Ref<[number, number, number]>;+ set velocity(v: H.In<readonly [number, number, number]>);/** The volume of the sound. */- get volume(): any;- set volume(v: any);+ get volume(): H.Ref<number>;+ set volume(v: H.In<number>);/*** The maximum volume of the source.** .. seealso:: :attr:`Device.distance_model`*/- get volume_maximum(): any;- set volume_maximum(v: any);+ get volume_maximum(): H.Ref<number>;+ set volume_maximum(v: H.In<number>);/*** The minimum volume of the source.** .. seealso:: :attr:`Device.distance_model`*/- get volume_minimum(): any;- set volume_minimum(v: any);+ get volume_minimum(): H.Ref<number>;+ set volume_minimum(v: H.In<number>);}/** The class aud.Handle: called, a new one. */export interface HandleClass {@@ -809,7 +809,7 @@ export interface PlaybackManager {catKey: H.In<number>;}): H.Ref<number>;/** Cleans all the invalid and finished sound from the playback manager. */- clean(...args: any[]): any;+ clean(...args: any[]): H.Ref<void>;}/** The class aud.PlaybackManager: called, a new one. */export interface PlaybackManagerClass {@@ -832,40 +832,40 @@ export interface Sequence extends P.aud.Sound {*/add(...args: any[]): H.Ptr<P.aud.SequenceEntry>;/** Removes an entry from the sequence. */- remove(...args: any[]): any;+ remove(...args: any[]): H.Ref<void>;/** Writes animation data to a sequence. */- setAnimationData(...args: any[]): any;+ setAnimationData(...args: any[]): H.Ref<void>;/** The channel count of the sequence. */- get channels(): any;- set channels(v: any);+ get channels(): H.Ref<number>;+ set channels(v: H.In<number>);/*** The distance model of the sequence.** .. seealso:: `OpenAL Documentation <https://www.openal.org/documentation/>`__*/- get distance_model(): any;- set distance_model(v: any);+ get distance_model(): H.Ref<number>;+ set distance_model(v: H.In<number>);/*** The doppler factor of the sequence.* This factor is a scaling factor for the velocity vectors in doppler calculation. So a value bigger than 1 will exaggerate the effect as it raises the velocity.*/- get doppler_factor(): any;- set doppler_factor(v: any);+ get doppler_factor(): H.Ref<number>;+ set doppler_factor(v: H.In<number>);/** The listeners's location in 3D space, a 3D tuple of floats. */- get fps(): any;- set fps(v: any);+ get fps(): H.Ref<number>;+ set fps(v: H.In<number>);/** Whether the whole sequence is muted. */- get muted(): any;- set muted(v: any);+ get muted(): H.Ref<boolean>;+ set muted(v: H.In<boolean>);/** The sampling rate of the sequence in Hz. */- get rate(): any;- set rate(v: any);+ get rate(): H.Ref<number>;+ set rate(v: H.In<number>);/*** The speed of sound of the sequence.* The speed of sound in air is typically 343.3 m/s.*/- get speed_of_sound(): any;- set speed_of_sound(v: any);+ get speed_of_sound(): H.Ref<number>;+ set speed_of_sound(v: H.In<number>);}/** The class aud.Sequence: called, a new one. */export interface SequenceClass {@@ -903,58 +903,58 @@ export interface SequenceClass {*/export interface SequenceEntry {/** Moves the entry. */- move(...args: any[]): any;+ move(...args: any[]): H.Ref<void>;/** Writes animation data to a sequenced entry. */- setAnimationData(...args: any[]): any;+ setAnimationData(...args: any[]): H.Ref<void>;/*** This factor is used for distance based attenuation of the source.** .. seealso:: :attr:`Device.distance_model`*/- get attenuation(): any;- set attenuation(v: any);+ get attenuation(): H.Ref<number>;+ set attenuation(v: H.In<number>);/*** The opening angle of the inner cone of the source. If the cone values of a source are set there are two (audible) cones with the apex at the :attr:`location` of the source and with infinite height, heading in the direction of the source's :attr:`orientation`.* In the inner cone the volume is normal. Outside the outer cone the volume will be :attr:`cone_volume_outer` and in the area between the volume will be interpolated linearly.*/- get cone_angle_inner(): any;- set cone_angle_inner(v: any);+ get cone_angle_inner(): H.Ref<number>;+ set cone_angle_inner(v: H.In<number>);/*** The opening angle of the outer cone of the source.** .. seealso:: :attr:`cone_angle_inner`*/- get cone_angle_outer(): any;- set cone_angle_outer(v: any);+ get cone_angle_outer(): H.Ref<number>;+ set cone_angle_outer(v: H.In<number>);/*** The volume outside the outer cone of the source.** .. seealso:: :attr:`cone_angle_inner`*/- get cone_volume_outer(): any;- set cone_volume_outer(v: any);+ get cone_volume_outer(): H.Ref<number>;+ set cone_volume_outer(v: H.In<number>);/*** The maximum distance of the source.* If the listener is further away the source volume will be 0.** .. seealso:: :attr:`Device.distance_model`*/- get distance_maximum(): any;- set distance_maximum(v: any);+ get distance_maximum(): H.Ref<number>;+ set distance_maximum(v: H.In<number>);/*** The reference distance of the source.* At this distance the volume will be exactly :attr:`volume`.** .. seealso:: :attr:`Device.distance_model`*/- get distance_reference(): any;- set distance_reference(v: any);+ get distance_reference(): H.Ref<number>;+ set distance_reference(v: H.In<number>);/** Whether the entry is muted. */- get muted(): any;- set muted(v: any);+ get muted(): H.Ref<boolean>;+ set muted(v: H.In<boolean>);/** Whether the source's location, velocity and orientation is relative or absolute to the listener. */- get relative(): any;- set relative(v: any);+ get relative(): H.Ref<boolean>;+ set relative(v: H.In<boolean>);/** The sound the entry is representing and will be played in the sequence. */get sound(): any;set sound(v: any);@@ -963,15 +963,15 @@ export interface SequenceEntry {** .. seealso:: :attr:`Device.distance_model`*/- get volume_maximum(): any;- set volume_maximum(v: any);+ get volume_maximum(): H.Ref<number>;+ set volume_maximum(v: H.In<number>);/*** The minimum volume of the source.** .. seealso:: :attr:`Device.distance_model`*/- get volume_minimum(): any;- set volume_minimum(v: any);+ get volume_minimum(): H.Ref<number>;+ set volume_minimum(v: H.In<number>);}/** The class aud.SequenceEntry: called, a new one. */export interface SequenceEntryClass {@@ -1003,7 +1003,7 @@ export interface Sound {* @param bitrate The bitrate to write with.* @param buffersize The size of the writing buffer.*/- write(filename: H.In<string>, rate: H.In<number>, channels: H.In<number>, format: H.In<number>, container: H.In<number>, codec: H.In<number>, bitrate: H.In<number>, buffersize: H.In<number>): any;+ write(filename: H.In<string>, rate: H.In<number>, channels: H.In<number>, format: H.In<number>, container: H.In<number>, codec: H.In<number>, bitrate: H.In<number>, buffersize: H.In<number>): H.Ref<void>;/*** Writes the sound to a file.* @param filename The path to write to.@@ -1032,7 +1032,7 @@ export interface Sound {bitrate: H.In<number>;/** The size of the writing buffer. */buffersize: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Caches a sound into RAM.*@@ -1601,7 +1601,7 @@ export interface Sound {* .. note:: You can only add a sound to a sound list.* @param sound The sound that will be added to the list.*/- addSound(sound: R.Sound): any;+ addSound(sound: R.Sound): H.Ref<void>;/*** Adds a new sound to a sound list.*@@ -1611,7 +1611,7 @@ export interface Sound {addSound(kw: {/** The sound that will be added to the list. */sound: R.Sound;- }): any;+ }): H.Ref<void>;/*** Adds Echo effect to the sound.* @returns The created :class:`Sound` object.@@ -1680,11 +1680,11 @@ export interface Sound {*/animateableTimeStretchPitchScale(): H.Ptr<R.Sound>;/** The sample specification of the sound as a tuple with rate and channel count. */- get specs(): any;- set specs(v: any);+ get specs(): H.Ref<[number, number]>;+ set specs(v: H.In<readonly [number, number]>);/** The sample specification of the sound as a tuple with rate and channel count. */- get length(): any;- set length(v: any);+ get length(): H.Ref<number>;+ set length(v: H.In<number>);}/** The class aud.Sound: called, a new one. */export interface SoundClass {@@ -1938,14 +1938,14 @@ export interface SoundClass {*/export interface Source {/** The azimuth angle. */- get azimuth(): any;- set azimuth(v: any);+ get azimuth(): H.Ref<number>;+ set azimuth(v: H.In<number>);/** The elevation angle. */- get elevation(): any;- set elevation(v: any);+ get elevation(): H.Ref<number>;+ set elevation(v: H.In<number>);/** The distance value. 0 is min, 1 is max. */- get distance(): any;- set distance(v: any);+ get distance(): H.Ref<number>;+ set distance(v: H.In<number>);}/** The class aud.Source: called, a new one. */export interface SourceClass {diff --git a/sdk/blender/src/gen/py/bmesh.ts b/sdk/blender/src/gen/py/bmesh.tsindex c0abc9da..fcf022d4 100644--- a/sdk/blender/src/gen/py/bmesh.ts+++ b/sdk/blender/src/gen/py/bmesh.ts@@ -44,7 +44,7 @@ export interface Api {loop_triangles?: H.In<boolean>;/** Use when geometry has been added or removed. */destructive?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Update the mesh after changes to the BMesh in editmode,* optionally recalculating n-gon tessellation.@@ -57,7 +57,7 @@ export interface Api {loop_triangles?: H.In<boolean>;/** Use when geometry has been added or removed. */destructive?: H.In<boolean>;- }): any;+ }): H.Ref<void>;readonly utils: P.bmesh_utils.Api;}diff --git a/sdk/blender/src/gen/py/bmesh_types.ts b/sdk/blender/src/gen/py/bmesh_types.tsindex a6fa6870..b15ad2cc 100644--- a/sdk/blender/src/gen/py/bmesh_types.ts+++ b/sdk/blender/src/gen/py/bmesh_types.ts@@ -111,7 +111,7 @@ export interface BMDeformVert {default?: any;}): any;/** Clears all weights. */- clear(...args: any[]): any;+ clear(...args: any[]): H.Ref<void>;}/** The class bmesh.types.BMDeformVert: called, a new one. */export interface BMDeformVertClass {@@ -134,7 +134,7 @@ export interface BMEdge {* This flushes selection down (e.g. selecting a face also selects its edges and vertices), but not up (e.g. de-selecting a vertex won't de-select faces that use it). Before finishing with a mesh, flushing is typically still needed.* @param select Select or de-select.*/- select_set(select: H.In<boolean>): any;+ select_set(select: H.In<boolean>): H.Ref<void>;/*** Set the selection.* This is different from the *select* attribute because it updates the selection state of associated geometry.@@ -147,13 +147,13 @@ export interface BMEdge {select_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.* @param hide Hidden or visible.*/- hide_set(hide: H.In<boolean>): any;+ hide_set(hide: H.In<boolean>): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.@@ -162,12 +162,12 @@ export interface BMEdge {hide_set(kw: {/** Hidden or visible. */hide: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.*/- copy_from(other: P.bmesh_types.BMEdge): any;+ copy_from(other: P.bmesh_types.BMEdge): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.@@ -175,7 +175,7 @@ export interface BMEdge {copy_from(kw: {/** Another element of the same type to copy from. */other: P.bmesh_types.BMEdge;- }): any;+ }): H.Ref<void>;/*** Return the other vertex on this edge or None if the vertex is not used by this edge.* @returns The edge's other vert.@@ -256,7 +256,7 @@ export interface BMEdge {** The normal of edge vertex will be a zero vector if vertex :attr:`is_wire` is True.*/- normal_update(...args: any[]): any;+ normal_update(...args: any[]): H.Ref<void>;/** Selected state of this element. */get select(): H.Ref<boolean>;set select(v: H.In<boolean>);@@ -347,7 +347,7 @@ export interface BMEdgeSeq extends AsyncIterable<BMEdge> {* Remove an edge.* @param edge The edge to remove.*/- remove(edge: P.bmesh_types.BMEdge): any;+ remove(edge: P.bmesh_types.BMEdge): H.Ref<void>;/*** Remove an edge.* @param edge The edge to remove.@@ -355,7 +355,7 @@ export interface BMEdgeSeq extends AsyncIterable<BMEdge> {remove(kw: {/** The edge to remove. */edge: P.bmesh_types.BMEdge;- }): any;+ }): H.Ref<void>;/*** Return an edge which uses the **verts** passed.* @returns The edge found or the fallback value.@@ -400,13 +400,13 @@ export interface BMEdgeSeq extends AsyncIterable<BMEdge> {* Running this on sequences besides :class:`bmesh.types.BMesh.verts`, :class:`bmesh.types.BMesh.edges`, :class:`bmesh.types.BMesh.faces`* works but won't result in each element having a valid index, instead its order in the sequence will be set.*/- index_update(...args: any[]): any;+ index_update(...args: any[]): H.Ref<void>;/*** Ensure internal data needed for int subscript access is initialized with verts/edges/faces, eg ``bm.verts[index]``.** This needs to be called again after adding/removing data in this sequence.*/- ensure_lookup_table(...args: any[]): any;+ ensure_lookup_table(...args: any[]): H.Ref<void>;/*** Sort the elements of this sequence, using an optional custom sort key.* Indices of elements are not changed, :meth:`bmesh.types.BMElemSeq.index_update` can be used for that.@@ -425,7 +425,7 @@ export interface BMEdgeSeq extends AsyncIterable<BMEdge> {key?: any;/** Reverse the order of the elements */reverse?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** custom-data layers (read-only). */get layers(): H.Ptr<P.bmesh_types.BMLayerAccessEdge>;}@@ -447,14 +447,14 @@ export interface BMEditSelIterClass {export interface BMEditSelSeq extends AsyncIterable<any> {readonly [index: number]: any;/** Ensures all elements in the selection history are selected. */- validate(...args: any[]): any;+ validate(...args: any[]): H.Ref<void>;/** Empties the selection history. */- clear(...args: any[]): any;+ clear(...args: any[]): H.Ref<void>;/*** Add an element to the selection history (no action taken if its already added).* @param element The element to add.*/- add(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): any;+ add(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): H.Ref<void>;/*** Add an element to the selection history (no action taken if its already added).* @param element The element to add.@@ -462,12 +462,12 @@ export interface BMEditSelSeq extends AsyncIterable<any> {add(kw: {/** The element to add. */element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Remove an element from the selection history.* @param element The element to remove.*/- remove(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): any;+ remove(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): H.Ref<void>;/*** Remove an element from the selection history.* @param element The element to remove.@@ -475,14 +475,14 @@ export interface BMEditSelSeq extends AsyncIterable<any> {remove(kw: {/** The element to remove. */element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Discard an element from the selection history.** Like remove but doesn't raise an error when the element is not in the selection list.* @param element The element to discard.*/- discard(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): any;+ discard(element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace): H.Ref<void>;/*** Discard an element from the selection history.*@@ -492,7 +492,7 @@ export interface BMEditSelSeq extends AsyncIterable<any> {discard(kw: {/** The element to discard. */element: P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/** The last selected element or None (read-only). */get active(): H.Ptr<P.bmesh_types.BMVert | P.bmesh_types.BMEdge | P.bmesh_types.BMFace>;}@@ -527,7 +527,7 @@ export interface BMElemSeq extends AsyncIterable<any> {* Running this on sequences besides :class:`bmesh.types.BMesh.verts`, :class:`bmesh.types.BMesh.edges`, :class:`bmesh.types.BMesh.faces`* works but won't result in each element having a valid index, instead its order in the sequence will be set.*/- index_update(...args: any[]): any;+ index_update(...args: any[]): H.Ref<void>;}/** The class bmesh.types.BMElemSeq: called, a new one. */export interface BMElemSeqClass {@@ -557,7 +557,7 @@ export interface BMFace {* This flushes selection down (e.g. selecting a face also selects its edges and vertices), but not up (e.g. de-selecting a vertex won't de-select faces that use it). Before finishing with a mesh, flushing is typically still needed.* @param select Select or de-select.*/- select_set(select: H.In<boolean>): any;+ select_set(select: H.In<boolean>): H.Ref<void>;/*** Set the selection.* This is different from the *select* attribute because it updates the selection state of associated geometry.@@ -570,13 +570,13 @@ export interface BMFace {select_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.* @param hide Hidden or visible.*/- hide_set(hide: H.In<boolean>): any;+ hide_set(hide: H.In<boolean>): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.@@ -585,12 +585,12 @@ export interface BMFace {hide_set(kw: {/** Hidden or visible. */hide: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.*/- copy_from(other: P.bmesh_types.BMFace): any;+ copy_from(other: P.bmesh_types.BMFace): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.@@ -598,13 +598,13 @@ export interface BMFace {copy_from(kw: {/** Another element of the same type to copy from. */other: P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from another face onto this one (faces should overlap).* @param face The face to interpolate data from.* @param vert When True, also copy vertex data.*/- copy_from_face_interp(face: P.bmesh_types.BMFace, vert?: H.In<boolean>): any;+ copy_from_face_interp(face: P.bmesh_types.BMFace, vert?: H.In<boolean>): H.Ref<void>;/*** Interpolate the customdata from another face onto this one (faces should overlap).* @param face The face to interpolate data from.@@ -613,7 +613,7 @@ export interface BMFace {copy_from_face_interp(face: P.bmesh_types.BMFace, kw: {/** When True, also copy vertex data. */vert?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from another face onto this one (faces should overlap).* @param face The face to interpolate data from.@@ -624,7 +624,7 @@ export interface BMFace {face: P.bmesh_types.BMFace;/** When True, also copy vertex data. */vert?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Make a copy of this face.* @returns The newly created face.@@ -643,7 +643,7 @@ export interface BMFace {* This flushes selection down (selecting a face also selects its edges and vertices), but not up. Before finishing with a mesh, flushing with :meth:`bmesh.types.BMesh.uv_select_flush_mode` is still needed.* @param select Select or de-select.*/- uv_select_set(select: H.In<boolean>): any;+ uv_select_set(select: H.In<boolean>): H.Ref<void>;/*** Set the UV face selection state.*@@ -655,7 +655,7 @@ export interface BMFace {uv_select_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Return the area of the face.* @returns The area of the face.@@ -709,9 +709,9 @@ export interface BMFace {* Update face normal based on the positions of the face verts.* This does not update the normals of face verts.*/- normal_update(...args: any[]): any;+ normal_update(...args: any[]): H.Ref<void>;/** Reverses winding of a face, which flips its normal. */- normal_flip(...args: any[]): any;+ normal_flip(...args: any[]): H.Ref<void>;/** Selected state of this element. */get select(): H.Ref<boolean>;set select(v: H.In<boolean>);@@ -798,7 +798,7 @@ export interface BMFaceSeq extends AsyncIterable<BMFace> {* Remove a face.* @param face The face to remove.*/- remove(face: P.bmesh_types.BMFace): any;+ remove(face: P.bmesh_types.BMFace): H.Ref<void>;/*** Remove a face.* @param face The face to remove.@@ -806,7 +806,7 @@ export interface BMFaceSeq extends AsyncIterable<BMFace> {remove(kw: {/** The face to remove. */face: P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Return a face which uses the **verts** passed.* @returns The face found or the fallback value.@@ -851,13 +851,13 @@ export interface BMFaceSeq extends AsyncIterable<BMFace> {* Running this on sequences besides :class:`bmesh.types.BMesh.verts`, :class:`bmesh.types.BMesh.edges`, :class:`bmesh.types.BMesh.faces`* works but won't result in each element having a valid index, instead its order in the sequence will be set.*/- index_update(...args: any[]): any;+ index_update(...args: any[]): H.Ref<void>;/*** Ensure internal data needed for int subscript access is initialized with verts/edges/faces, eg ``bm.verts[index]``.** This needs to be called again after adding/removing data in this sequence.*/- ensure_lookup_table(...args: any[]): any;+ ensure_lookup_table(...args: any[]): H.Ref<void>;/*** Sort the elements of this sequence, using an optional custom sort key.* Indices of elements are not changed, :meth:`bmesh.types.BMElemSeq.index_update` can be used for that.@@ -876,7 +876,7 @@ export interface BMFaceSeq extends AsyncIterable<BMFace> {key?: any;/** Reverse the order of the elements */reverse?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** custom-data layers (read-only). */get layers(): H.Ptr<P.bmesh_types.BMLayerAccessFace>;/** active face. */@@ -1085,7 +1085,7 @@ export interface BMLayerCollection extends AsyncIterable<any> {* Remove a layer* @param layer The layer to remove.*/- remove(layer: P.bmesh_types.BMLayerItem): any;+ remove(layer: P.bmesh_types.BMLayerItem): H.Ref<void>;/*** Remove a layer* @param layer The layer to remove.@@ -1093,7 +1093,7 @@ export interface BMLayerCollection extends AsyncIterable<any> {remove(kw: {/** The layer to remove. */layer: P.bmesh_types.BMLayerItem;- }): any;+ }): H.Ref<void>;/*** Return the identifiers of collection members* (matching Python's dict.keys() functionality).@@ -1171,7 +1171,7 @@ export interface BMLayerItem {* Copy data from another layer.* @param other Another layer to copy from.*/- copy_from(other: P.bmesh_types.BMLayerItem): any;+ copy_from(other: P.bmesh_types.BMLayerItem): H.Ref<void>;/*** Copy data from another layer.* @param other Another layer to copy from.@@ -1179,7 +1179,7 @@ export interface BMLayerItem {copy_from(kw: {/** Another layer to copy from. */other: P.bmesh_types.BMLayerItem;- }): any;+ }): H.Ref<void>;/** The layer's unique name (read-only). */get name(): H.Ref<string>;}@@ -1200,7 +1200,7 @@ export interface BMLoop {* Copy values from another element of matching type.* @param other Another element of the same type to copy from.*/- copy_from(other: P.bmesh_types.BMLoop): any;+ copy_from(other: P.bmesh_types.BMLoop): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.@@ -1208,14 +1208,14 @@ export interface BMLoop {copy_from(kw: {/** Another element of the same type to copy from. */other: P.bmesh_types.BMLoop;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from a face onto this loop (the loop's vert should overlap the face).* @param face The face to interpolate data from.* @param vert When enabled, interpolate the loop's vertex data (optional).* @param multires When enabled, interpolate the loop's multires data (optional).*/- copy_from_face_interp(face: P.bmesh_types.BMFace, vert?: H.In<boolean>, multires?: H.In<boolean>): any;+ copy_from_face_interp(face: P.bmesh_types.BMFace, vert?: H.In<boolean>, multires?: H.In<boolean>): H.Ref<void>;/*** Interpolate the customdata from a face onto this loop (the loop's vert should overlap the face).* @param face The face to interpolate data from.@@ -1227,7 +1227,7 @@ export interface BMLoop {vert?: H.In<boolean>;/** When enabled, interpolate the loop's multires data (optional). */multires?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from a face onto this loop (the loop's vert should overlap the face).* @param face The face to interpolate data from.@@ -1241,7 +1241,7 @@ export interface BMLoop {vert?: H.In<boolean>;/** When enabled, interpolate the loop's multires data (optional). */multires?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set the UV vertex selection state.*@@ -1250,7 +1250,7 @@ export interface BMLoop {* This does not flush selection, so selecting a vertex won't select the edges & faces that use it. Before finishing with a mesh, flushing with :meth:`bmesh.types.BMesh.uv_select_flush_mode` is still needed.* @param select Select or de-select.*/- uv_select_vert_set(select: H.In<boolean>): any;+ uv_select_vert_set(select: H.In<boolean>): H.Ref<void>;/*** Set the UV vertex selection state.*@@ -1262,7 +1262,7 @@ export interface BMLoop {uv_select_vert_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set the UV edge selection state.*@@ -1271,7 +1271,7 @@ export interface BMLoop {* This flushes selection down (selecting an edge also selects its vertices), but not up (de-selecting a vertex won't de-select the edges & faces that use it). Before finishing with a mesh, flushing with :meth:`bmesh.types.BMesh.uv_select_flush_mode` is still needed.* @param select Select or de-select.*/- uv_select_edge_set(select: H.In<boolean>): any;+ uv_select_edge_set(select: H.In<boolean>): H.Ref<void>;/*** Set the UV edge selection state.*@@ -1283,7 +1283,7 @@ export interface BMLoop {uv_select_edge_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Return the angle at this loops corner of the face.* This is calculated so sharper corners give lower angles.@@ -1392,7 +1392,7 @@ export interface BMVert {* This flushes selection down (e.g. selecting a face also selects its edges and vertices), but not up (e.g. de-selecting a vertex won't de-select faces that use it). Before finishing with a mesh, flushing is typically still needed.* @param select Select or de-select.*/- select_set(select: H.In<boolean>): any;+ select_set(select: H.In<boolean>): H.Ref<void>;/*** Set the selection.* This is different from the *select* attribute because it updates the selection state of associated geometry.@@ -1405,13 +1405,13 @@ export interface BMVert {select_set(kw: {/** Select or de-select. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.* @param hide Hidden or visible.*/- hide_set(hide: H.In<boolean>): any;+ hide_set(hide: H.In<boolean>): H.Ref<void>;/*** Set the hide state.* This is different from the *hide* attribute because it updates the selection and hide state of associated geometry.@@ -1420,12 +1420,12 @@ export interface BMVert {hide_set(kw: {/** Hidden or visible. */hide: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.*/- copy_from(other: P.bmesh_types.BMVert): any;+ copy_from(other: P.bmesh_types.BMVert): H.Ref<void>;/*** Copy values from another element of matching type.* @param other Another element of the same type to copy from.@@ -1433,12 +1433,12 @@ export interface BMVert {copy_from(kw: {/** Another element of the same type to copy from. */other: P.bmesh_types.BMVert;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from a face onto this vert (the vert should overlap the face).* @param face The face to interpolate data from.*/- copy_from_face_interp(face: P.bmesh_types.BMFace): any;+ copy_from_face_interp(face: P.bmesh_types.BMFace): H.Ref<void>;/*** Interpolate the customdata from a face onto this vert (the vert should overlap the face).* @param face The face to interpolate data from.@@ -1446,13 +1446,13 @@ export interface BMVert {copy_from_face_interp(kw: {/** The face to interpolate data from. */face: P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Interpolate the customdata from a vert between 2 other verts.* @param vert_pair The verts between which to interpolate data from.* @param fac The interpolation factor.*/- copy_from_vert_interp(vert_pair: H.In<readonly P.bmesh_types.BMVert[]>, fac: H.In<number>): any;+ copy_from_vert_interp(vert_pair: H.In<readonly P.bmesh_types.BMVert[]>, fac: H.In<number>): H.Ref<void>;/*** Interpolate the customdata from a vert between 2 other verts.* @param vert_pair The verts between which to interpolate data from.@@ -1463,7 +1463,7 @@ export interface BMVert {vert_pair: H.In<readonly P.bmesh_types.BMVert[]>;/** The interpolation factor. */fac: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Return the angle between this vert's two connected edges.* @returns Angle between edges in radians.@@ -1497,7 +1497,7 @@ export interface BMVert {** The vertex normal will be a zero vector if vertex :attr:`is_wire` is True.*/- normal_update(...args: any[]): any;+ normal_update(...args: any[]): H.Ref<void>;/** Selected state of this element. */get select(): H.Ref<boolean>;set select(v: H.In<boolean>);@@ -1574,7 +1574,7 @@ export interface BMVertSeq extends AsyncIterable<BMVert> {* Remove a vert.* @param vert The vert to remove.*/- remove(vert: P.bmesh_types.BMVert): any;+ remove(vert: P.bmesh_types.BMVert): H.Ref<void>;/*** Remove a vert.* @param vert The vert to remove.@@ -1582,7 +1582,7 @@ export interface BMVertSeq extends AsyncIterable<BMVert> {remove(kw: {/** The vert to remove. */vert: P.bmesh_types.BMVert;- }): any;+ }): H.Ref<void>;/*** Initialize the index values of this sequence.*@@ -1598,13 +1598,13 @@ export interface BMVertSeq extends AsyncIterable<BMVert> {* Running this on sequences besides :class:`bmesh.types.BMesh.verts`, :class:`bmesh.types.BMesh.edges`, :class:`bmesh.types.BMesh.faces`* works but won't result in each element having a valid index, instead its order in the sequence will be set.*/- index_update(...args: any[]): any;+ index_update(...args: any[]): H.Ref<void>;/*** Ensure internal data needed for int subscript access is initialized with verts/edges/faces, eg ``bm.verts[index]``.** This needs to be called again after adding/removing data in this sequence.*/- ensure_lookup_table(...args: any[]): any;+ ensure_lookup_table(...args: any[]): H.Ref<void>;/*** Sort the elements of this sequence, using an optional custom sort key.* Indices of elements are not changed, :meth:`bmesh.types.BMElemSeq.index_update` can be used for that.@@ -1623,7 +1623,7 @@ export interface BMVertSeq extends AsyncIterable<BMVert> {key?: any;/** Reverse the order of the elements */reverse?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** custom-data layers (read-only). */get layers(): H.Ptr<P.bmesh_types.BMLayerAccessVert>;}@@ -1641,7 +1641,7 @@ export interface BMesh {/** @returns A copy of this BMesh. */copy(...args: any[]): H.Ptr<P.bmesh_types.BMesh>;/** Clear all mesh data. */- clear(...args: any[]): any;+ clear(...args: any[]): H.Ref<void>;/*** Explicitly free the BMesh data from memory, causing exceptions on further access.*@@ -1651,7 +1651,7 @@ export interface BMesh {* However in some cases it's hard to predict when this will be and it's useful to* explicitly free the data.*/- free(...args: any[]): any;+ free(...args: any[]): H.Ref<void>;/*** Initialize this bmesh from existing object data-block (only meshes are currently supported).* @param object The object data to load.@@ -1664,7 +1664,7 @@ export interface BMesh {face_normals?: H.In<boolean>;/** Calculate vertex normals. */vertex_normals?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Initialize this bmesh from existing object data-block (only meshes are currently supported).* @param object The object data to load.@@ -1681,7 +1681,7 @@ export interface BMesh {face_normals?: H.In<boolean>;/** Calculate vertex normals. */vertex_normals?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Initialize this bmesh from existing mesh data-block.*@@ -1702,7 +1702,7 @@ export interface BMesh {use_shape_key?: H.In<boolean>;/** The shape key index to use. */shape_key_index?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Initialize this bmesh from existing mesh data-block.*@@ -1725,12 +1725,12 @@ export interface BMesh {use_shape_key?: H.In<boolean>;/** The shape key index to use. */shape_key_index?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Writes this BMesh data into an existing Mesh data-block.* @param mesh The mesh data to write into.*/- to_mesh(mesh: R.Mesh): any;+ to_mesh(mesh: R.Mesh): H.Ref<void>;/*** Writes this BMesh data into an existing Mesh data-block.* @param mesh The mesh data to write into.@@ -1738,17 +1738,17 @@ export interface BMesh {to_mesh(kw: {/** The mesh data to write into. */mesh: R.Mesh;- }): any;+ }): H.Ref<void>;/** Flush selection based on the current mode :attr:`bmesh.types.BMesh.select_mode`. */select_flush_mode(kw?: {/** Flush selection down from faces to edges & verts or from edges to verts. This option is ignored when vertex selection mode is enabled. */flush_down?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Flush selection from vertices, independent of the current selection mode.* @param select flush selection or de-selected elements.*/- select_flush(select: H.In<boolean>): any;+ select_flush(select: H.In<boolean>): H.Ref<void>;/*** Flush selection from vertices, independent of the current selection mode.* @param select flush selection or de-selected elements.@@ -1756,12 +1756,12 @@ export interface BMesh {select_flush(kw: {/** flush selection or de-selected elements. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** Flush UV selection based on the current mode :attr:`bmesh.types.BMesh.select_mode`. */uv_select_flush_mode(kw?: {/** Flush selection down from faces to edges & verts or from edges to verts. This option is ignored when vertex selection mode is enabled. */flush_down?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Flush selection from UV vertices to edges & faces independent of the selection mode.*@@ -1770,7 +1770,7 @@ export interface BMesh {* - |UV_SELECT_SYNC_TO_MESH_NEEDED|* @param select Flush selection or de-selected elements.*/- uv_select_flush(select: H.In<boolean>): any;+ uv_select_flush(select: H.In<boolean>): H.Ref<void>;/*** Flush selection from UV vertices to edges & faces independent of the selection mode.*@@ -1782,7 +1782,7 @@ export interface BMesh {uv_select_flush(kw: {/** Flush selection or de-selected elements. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Flush selection from UV vertices to contiguous UV's independent of the selection mode.*@@ -1791,7 +1791,7 @@ export interface BMesh {* - |UV_SELECT_SYNC_TO_MESH_NEEDED|* @param select Flush selection or de-selected elements.*/- uv_select_flush_shared(select: H.In<boolean>): any;+ uv_select_flush_shared(select: H.In<boolean>): H.Ref<void>;/*** Flush selection from UV vertices to contiguous UV's independent of the selection mode.*@@ -1803,7 +1803,7 @@ export interface BMesh {uv_select_flush_shared(kw: {/** Flush selection or de-selected elements. */select: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Sync selection from mesh to UVs.*@@ -1814,9 +1814,9 @@ export interface BMesh {uv_select_sync_from_mesh(kw?: {/** Behavior when flushing from the mesh to UV selection |UV_STICKY_SELECT_MODE_REF|. This should only be used when preparing to create a UV selection. */sticky_select_mode?: any;- }): any;+ }): H.Ref<void>;/** Sync selection from UVs to the mesh. */- uv_select_sync_to_mesh(...args: any[]): any;+ uv_select_sync_to_mesh(...args: any[]): H.Ref<void>;/*** Set the UV selection state for loop-vertices, loop-edges & faces.*@@ -1837,7 +1837,7 @@ export interface BMesh {faces?: H.In<readonly P.bmesh_types.BMFace[]>;/** See |UV_STICKY_SELECT_MODE_REF|. */sticky_select_mode?: any;- }): any;+ }): H.Ref<void>;/*** Select or de-select mesh elements, updating the UV selection.*@@ -1853,7 +1853,7 @@ export interface BMesh {faces?: H.In<readonly P.bmesh_types.BMFace[]>;/** See |UV_STICKY_SELECT_MODE_REF|. */sticky_select_mode?: any;- }): any;+ }): H.Ref<void>;/*** Update normals of mesh faces and verts.*@@ -1861,7 +1861,7 @@ export interface BMesh {** The normal of any vertex where :attr:`is_wire` is True will be a zero vector.*/- normal_update(...args: any[]): any;+ normal_update(...args: any[]): H.Ref<void>;/*** Transform the mesh (optionally filtering flagged data only).* @param matrix 4x4 transform matrix.@@ -1869,7 +1869,7 @@ export interface BMesh {transform(matrix: H.In<M.MatrixLike>, kw?: {/** Flag to filter vertices. */filter?: H.In<Set<"SELECT" | "HIDE" | "SEAM" | "SMOOTH" | "TAG"> | null>;- }): any;+ }): H.Ref<void>;/*** Transform the mesh (optionally filtering flagged data only).* @param matrix 4x4 transform matrix.@@ -1879,7 +1879,7 @@ export interface BMesh {matrix: H.In<M.MatrixLike>;/** Flag to filter vertices. */filter?: H.In<Set<"SELECT" | "HIDE" | "SEAM" | "SMOOTH" | "TAG"> | null>;- }): any;+ }): H.Ref<void>;/*** Calculate mesh volume based on face normals.* @returns The volume of the mesh.diff --git a/sdk/blender/src/gen/py/bmesh_utils.ts b/sdk/blender/src/gen/py/bmesh_utils.tsindex dff794d7..3e6753d8 100644--- a/sdk/blender/src/gen/py/bmesh_utils.ts+++ b/sdk/blender/src/gen/py/bmesh_utils.ts@@ -66,7 +66,7 @@ export interface Api {* Flip the face's direction.* @param face Face to flip.*/- face_flip(face: P.bmesh_types.BMFace): any;+ face_flip(face: P.bmesh_types.BMFace): H.Ref<void>;/*** Flip the face's direction.* @param face Face to flip.@@ -74,7 +74,7 @@ export interface Api {face_flip(kw: {/** Face to flip. */face: P.bmesh_types.BMFace;- }): any;+ }): H.Ref<void>;/*** Joins a sequence of faces.* @returns The newly created face or None on failure.@@ -309,7 +309,7 @@ export interface Api {* @param vert The vertex to be removed.* @param vert_target The vertex to merge into.*/- vert_splice(vert: P.bmesh_types.BMVert, vert_target: P.bmesh_types.BMVert): any;+ vert_splice(vert: P.bmesh_types.BMVert, vert_target: P.bmesh_types.BMVert): H.Ref<void>;/*** Splice vert into vert_target, merging them.*@@ -322,6 +322,6 @@ export interface Api {vert: P.bmesh_types.BMVert;/** The vertex to merge into. */vert_target: P.bmesh_types.BMVert;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/bpy_msgbus.ts b/sdk/blender/src/gen/py/bpy_msgbus.tsindex 8c7b32ed..99a090dd 100644--- a/sdk/blender/src/gen/py/bpy_msgbus.ts+++ b/sdk/blender/src/gen/py/bpy_msgbus.ts@@ -11,7 +11,7 @@ export interface Api {* Clear all subscribers using this owner.* @param owner The owner handle passed to :func:`subscribe_rna`.*/- clear_by_owner(owner: any): any;+ clear_by_owner(owner: any): H.Ref<void>;/*** Clear all subscribers using this owner.* @param owner The owner handle passed to :func:`subscribe_rna`.@@ -19,7 +19,7 @@ export interface Api {clear_by_owner(kw: {/** The owner handle passed to :func:`subscribe_rna`. */owner: any;- }): any;+ }): H.Ref<void>;/*** Notify subscribers of changes to this property* (this typically doesn't need to be called explicitly since changes will automatically publish updates).@@ -34,7 +34,7 @@ export interface Api {* - A tuple representing a (struct, property name) pair.*/key?: H.In<R.Property | R.Struct | readonly [R.Struct, string]>;- }): any;+ }): H.Ref<void>;/*** Register a message bus subscription. It will be cleared when another blend file is* loaded, or can be cleared explicitly via :func:`bpy.msgbus.clear_by_owner`.@@ -69,6 +69,6 @@ export interface Api {args?: any;notify?: any;options?: any;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/bpy_utils.ts b/sdk/blender/src/gen/py/bpy_utils.tsindex 32a1d7b2..3c07c779 100644--- a/sdk/blender/src/gen/py/bpy_utils.ts+++ b/sdk/blender/src/gen/py/bpy_utils.ts@@ -330,7 +330,7 @@ export interface Api {* If the class has a *register* class method it will be called* before registration.*/- register_class(): any;+ register_class(): H.Ref<void>;/*** Utility function to create register and unregister functions* which simply registers and unregisters a sequence of classes.@@ -685,12 +685,12 @@ export interface Api {* If the class has an *unregister* class method it will be called* before unregistering.*/- unregister_class(): any;+ unregister_class(): H.Ref<void>;/*** Unregister a CLI command.* @param handle The return value of :func:`register_cli_command`.*/- unregister_cli_command(handle: any): any;+ unregister_cli_command(handle: any): H.Ref<void>;/*** Unregister a CLI command.* @param handle The return value of :func:`register_cli_command`.@@ -698,7 +698,7 @@ export interface Api {unregister_cli_command(kw: {/** The return value of :func:`register_cli_command`. */handle: any;- }): any;+ }): H.Ref<void>;/*** Unregister a previously registered manual map hook.* @param manual_hook The hook function to remove.diff --git a/sdk/blender/src/gen/py/gpu.ts b/sdk/blender/src/gen/py/gpu.tsindex 4a8f6acc..8e730a17 100644--- a/sdk/blender/src/gen/py/gpu.ts+++ b/sdk/blender/src/gen/py/gpu.ts@@ -16,7 +16,7 @@ export interface Api {* Initializes the GPU module for background use.* If the initialization fails, a SystemError will be raised.*/- init(...args: any[]): any;+ init(...args: any[]): H.Ref<void>;readonly matrix: P.gpu_matrix.Api;readonly platform: P.gpu_platform.Api;readonly select: P.gpu_select.Api;diff --git a/sdk/blender/src/gen/py/gpu_compute.ts b/sdk/blender/src/gen/py/gpu_compute.tsindex e18f8def..f10eed6d 100644--- a/sdk/blender/src/gen/py/gpu_compute.ts+++ b/sdk/blender/src/gen/py/gpu_compute.ts@@ -14,7 +14,7 @@ export interface Api {* @param groups_y_len Int for group y length:* @param groups_z_len Int for group z length:*/- dispatch(shader: P.gpu_types.GPUShader, groups_x_len: H.In<number>, groups_y_len: H.In<number>, groups_z_len: H.In<number>): any;+ dispatch(shader: P.gpu_types.GPUShader, groups_x_len: H.In<number>, groups_y_len: H.In<number>, groups_z_len: H.In<number>): H.Ref<void>;/*** Dispatches GPU compute.* @param shader The shader that you want to dispatch.@@ -31,6 +31,6 @@ export interface Api {groups_y_len: H.In<number>;/** Int for group z length: */groups_z_len: H.In<number>;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/gpu_matrix.ts b/sdk/blender/src/gen/py/gpu_matrix.tsindex c222445e..5fc72a63 100644--- a/sdk/blender/src/gen/py/gpu_matrix.ts+++ b/sdk/blender/src/gen/py/gpu_matrix.ts@@ -23,12 +23,12 @@ export interface Api {*/get_projection_matrix(...args: any[]): H.Remote<M.Matrix>;/** Load an identity matrix into the stack. */- load_identity(...args: any[]): any;+ load_identity(...args: any[]): H.Ref<void>;/*** Load a matrix into the stack.* @param matrix A 4x4 matrix.*/- load_matrix(matrix: H.In<M.MatrixLike>): any;+ load_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;/*** Load a matrix into the stack.* @param matrix A 4x4 matrix.@@ -36,12 +36,12 @@ export interface Api {load_matrix(kw: {/** A 4x4 matrix. */matrix: H.In<M.MatrixLike>;- }): any;+ }): H.Ref<void>;/*** Load a projection matrix into the stack.* @param matrix A 4x4 matrix.*/- load_projection_matrix(matrix: H.In<M.MatrixLike>): any;+ load_projection_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;/*** Load a projection matrix into the stack.* @param matrix A 4x4 matrix.@@ -49,12 +49,12 @@ export interface Api {load_projection_matrix(kw: {/** A 4x4 matrix. */matrix: H.In<M.MatrixLike>;- }): any;+ }): H.Ref<void>;/*** Multiply the current stack matrix.* @param matrix A 4x4 matrix.*/- multiply_matrix(matrix: H.In<M.MatrixLike>): any;+ multiply_matrix(matrix: H.In<M.MatrixLike>): H.Ref<void>;/*** Multiply the current stack matrix.* @param matrix A 4x4 matrix.@@ -62,13 +62,13 @@ export interface Api {multiply_matrix(kw: {/** A 4x4 matrix. */matrix: H.In<M.MatrixLike>;- }): any;+ }): H.Ref<void>;/** Remove the last model-view matrix from the stack. */- pop(...args: any[]): any;+ pop(...args: any[]): H.Ref<void>;/** Remove the last projection matrix from the stack. */- pop_projection(...args: any[]): any;+ pop_projection(...args: any[]): H.Ref<void>;/** Add to the model-view matrix stack. */- push(...args: any[]): any;+ push(...args: any[]): H.Ref<void>;/*** Context manager to ensure balanced push/pop calls, even in the case of an error.* @returns The context manager.@@ -80,14 +80,14 @@ export interface Api {*/push_pop_projection(...args: any[]): H.Ptr<P.gpu_types.MatrixStackContext>;/** Add to the projection matrix stack. */- push_projection(...args: any[]): any;+ push_projection(...args: any[]): H.Ref<void>;/** Empty stack and set to identity. */- reset(...args: any[]): any;+ reset(...args: any[]): H.Ref<void>;/*** Scale the current stack matrix.* @param scale Scale the current stack matrix with 2 or 3 floats.*/- scale(scale: H.In<readonly number[]>): any;+ scale(scale: H.In<readonly number[]>): H.Ref<void>;/*** Scale the current stack matrix.* @param scale Scale the current stack matrix with 2 or 3 floats.@@ -95,12 +95,12 @@ export interface Api {scale(kw: {/** Scale the current stack matrix with 2 or 3 floats. */scale: H.In<readonly number[]>;- }): any;+ }): H.Ref<void>;/*** Scale the current stack matrix uniformly.* @param scale Uniform scale factor.*/- scale_uniform(scale: H.In<number>): any;+ scale_uniform(scale: H.In<number>): H.Ref<void>;/*** Scale the current stack matrix uniformly.* @param scale Uniform scale factor.@@ -108,12 +108,12 @@ export interface Api {scale_uniform(kw: {/** Uniform scale factor. */scale: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Translate the current stack matrix.* @param offset Translate the current stack matrix with 2 or 3 floats.*/- translate(offset: H.In<readonly number[]>): any;+ translate(offset: H.In<readonly number[]>): H.Ref<void>;/*** Translate the current stack matrix.* @param offset Translate the current stack matrix with 2 or 3 floats.@@ -121,6 +121,6 @@ export interface Api {translate(kw: {/** Translate the current stack matrix with 2 or 3 floats. */offset: H.In<readonly number[]>;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/gpu_select.ts b/sdk/blender/src/gen/py/gpu_select.tsindex d0c5764e..d6664354 100644--- a/sdk/blender/src/gen/py/gpu_select.ts+++ b/sdk/blender/src/gen/py/gpu_select.ts@@ -11,7 +11,7 @@ export interface Api {* Set the selection ID.* @param id Number (32-bit uint).*/- load_id(id: H.In<number>): any;+ load_id(id: H.In<number>): H.Ref<void>;/*** Set the selection ID.* @param id Number (32-bit uint).@@ -19,6 +19,6 @@ export interface Api {load_id(kw: {/** Number (32-bit uint). */id: H.In<number>;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/gpu_shader.ts b/sdk/blender/src/gen/py/gpu_shader.tsindex 642accd6..745d1b42 100644--- a/sdk/blender/src/gen/py/gpu_shader.ts+++ b/sdk/blender/src/gen/py/gpu_shader.ts@@ -112,6 +112,6 @@ export interface Api {config?: H.In<string>;}): H.Ptr<P.gpu_types.GPUShader>;/** Unbind the bound shader object. */- unbind(...args: any[]): any;+ unbind(...args: any[]): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/gpu_state.ts b/sdk/blender/src/gen/py/gpu_state.tsindex a1bd6aaa..1d0ac9ff 100644--- a/sdk/blender/src/gen/py/gpu_state.ts+++ b/sdk/blender/src/gen/py/gpu_state.ts@@ -21,7 +21,7 @@ export interface Api {* Defines the fixed pipeline blending equation.* @param mode The type of blend mode. * ``NONE`` No blending. * ``ALPHA`` The original color channels are interpolated according to the alpha value. * ``ALPHA_PREMULT`` The original color channels are interpolated according to the alpha value with the new colors pre-multiplied by this value. * ``ADDITIVE`` The original color channels are added by the corresponding ones. * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones that are pre-multiplied by the alpha value. * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones. * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones. * ``INVERT`` The original color channels are replaced by its complementary color.*/- blend_set(mode: H.In<"NONE" | "ALPHA" | "ALPHA_PREMULT" | "ADDITIVE" | "ADDITIVE_PREMULT" | "MULTIPLY" | "SUBTRACT" | "INVERT">): any;+ blend_set(mode: H.In<"NONE" | "ALPHA" | "ALPHA_PREMULT" | "ADDITIVE" | "ADDITIVE_PREMULT" | "MULTIPLY" | "SUBTRACT" | "INVERT">): H.Ref<void>;/*** Defines the fixed pipeline blending equation.* @param mode The type of blend mode. * ``NONE`` No blending. * ``ALPHA`` The original color channels are interpolated according to the alpha value. * ``ALPHA_PREMULT`` The original color channels are interpolated according to the alpha value with the new colors pre-multiplied by this value. * ``ADDITIVE`` The original color channels are added by the corresponding ones. * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones that are pre-multiplied by the alpha value. * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones. * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones. * ``INVERT`` The original color channels are replaced by its complementary color.@@ -39,12 +39,12 @@ export interface Api {* * ``INVERT`` The original color channels are replaced by its complementary color.*/mode: H.In<"NONE" | "ALPHA" | "ALPHA_PREMULT" | "ADDITIVE" | "ADDITIVE_PREMULT" | "MULTIPLY" | "SUBTRACT" | "INVERT">;- }): any;+ }): H.Ref<void>;/*** Sets the number of ``gl_ClipDistance`` planes used for clip geometry.* @param distances_enabled Number of clip distances enabled.*/- clip_distances_set(distances_enabled: H.In<number>): any;+ clip_distances_set(distances_enabled: H.In<number>): H.Ref<void>;/*** Sets the number of ``gl_ClipDistance`` planes used for clip geometry.* @param distances_enabled Number of clip distances enabled.@@ -52,7 +52,7 @@ export interface Api {clip_distances_set(kw: {/** Number of clip distances enabled. */distances_enabled: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Enable or disable writing of frame buffer color components.* @param r Red component.@@ -60,7 +60,7 @@ export interface Api {* @param b Blue component.* @param a Alpha component.*/- color_mask_set(r: H.In<boolean>, g: H.In<boolean>, b: H.In<boolean>, a: H.In<boolean>): any;+ color_mask_set(r: H.In<boolean>, g: H.In<boolean>, b: H.In<boolean>, a: H.In<boolean>): H.Ref<void>;/*** Enable or disable writing of frame buffer color components.* @param r Red component.@@ -77,7 +77,7 @@ export interface Api {b: H.In<boolean>;/** Alpha component. */a: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Writing status in the depth component.* @returns True if writing to the depth component is enabled.@@ -87,7 +87,7 @@ export interface Api {* Write to depth component.* @param value True for writing to the depth component.*/- depth_mask_set(value: H.In<boolean>): any;+ depth_mask_set(value: H.In<boolean>): H.Ref<void>;/*** Write to depth component.* @param value True for writing to the depth component.@@ -95,7 +95,7 @@ export interface Api {depth_mask_set(kw: {/** True for writing to the depth component. */value: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Current depth_test equation.* @returns The current depth test mode.@@ -105,7 +105,7 @@ export interface Api {* Defines the depth_test equation.* @param mode The depth test equation name.*/- depth_test_set(mode: H.In<"NONE" | "ALWAYS" | "LESS" | "LESS_EQUAL" | "EQUAL" | "GREATER" | "GREATER_EQUAL">): any;+ depth_test_set(mode: H.In<"NONE" | "ALWAYS" | "LESS" | "LESS_EQUAL" | "EQUAL" | "GREATER" | "GREATER_EQUAL">): H.Ref<void>;/*** Defines the depth_test equation.* @param mode The depth test equation name.@@ -113,12 +113,12 @@ export interface Api {depth_test_set(kw: {/** The depth test equation name. */mode: H.In<"NONE" | "ALWAYS" | "LESS" | "LESS_EQUAL" | "EQUAL" | "GREATER" | "GREATER_EQUAL">;- }): any;+ }): H.Ref<void>;/*** Specify whether none, front-facing or back-facing facets can be culled.* @param culling The face culling mode.*/- face_culling_set(culling: H.In<"NONE" | "FRONT" | "BACK">): any;+ face_culling_set(culling: H.In<"NONE" | "FRONT" | "BACK">): H.Ref<void>;/*** Specify whether none, front-facing or back-facing facets can be culled.* @param culling The face culling mode.@@ -126,12 +126,12 @@ export interface Api {face_culling_set(kw: {/** The face culling mode. */culling: H.In<"NONE" | "FRONT" | "BACK">;- }): any;+ }): H.Ref<void>;/*** Specifies the orientation of front-facing polygons.* @param invert True for clockwise polygons as front-facing.*/- front_facing_set(invert: H.In<boolean>): any;+ front_facing_set(invert: H.In<boolean>): H.Ref<void>;/*** Specifies the orientation of front-facing polygons.* @param invert True for clockwise polygons as front-facing.@@ -139,7 +139,7 @@ export interface Api {front_facing_set(kw: {/** True for clockwise polygons as front-facing. */invert: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Current width of rasterized lines.* @returns The current line width.@@ -149,7 +149,7 @@ export interface Api {* Specify the width of rasterized lines.* @param width New width.*/- line_width_set(width: H.In<number>): any;+ line_width_set(width: H.In<number>): H.Ref<void>;/*** Specify the width of rasterized lines.* @param width New width.@@ -157,7 +157,7 @@ export interface Api {line_width_set(kw: {/** New width. */width: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Specify the diameter of rasterized points.*@@ -168,7 +168,7 @@ export interface Api {* point size via ``gl_PointSize`` in the vertex shader.* @param size New diameter.*/- point_size_set(size: H.In<number>): any;+ point_size_set(size: H.In<number>): H.Ref<void>;/*** Specify the diameter of rasterized points.*@@ -182,7 +182,7 @@ export interface Api {point_size_set(kw: {/** New diameter. */size: H.In<number>;- }): any;+ }): H.Ref<void>;/*** When enabled (True), point size is taken from the shader builtin* ``gl_PointSize``. When disabled (False), the global state value can@@ -190,7 +190,7 @@ export interface Api {* value.* @param enable True to use shader ``gl_PointSize``, False for global state.*/- program_point_size_set(enable: H.In<boolean>): any;+ program_point_size_set(enable: H.In<boolean>): H.Ref<void>;/*** When enabled (True), point size is taken from the shader builtin* ``gl_PointSize``. When disabled (False), the global state value can@@ -201,7 +201,7 @@ export interface Api {program_point_size_set(kw: {/** True to use shader ``gl_PointSize``, False for global state. */enable: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Retrieve the scissors of the active framebuffer.* Note: Only valid between 'scissor_set' and a framebuffer rebind.@@ -219,7 +219,7 @@ export interface Api {* @param xsize Width of the scissor rectangle.* @param ysize Height of the scissor rectangle.*/- scissor_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): any;+ scissor_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): H.Ref<void>;/*** Specifies the scissor area of the active framebuffer.* Note: The scissor state is not saved upon framebuffer rebind.@@ -237,12 +237,12 @@ export interface Api {xsize: H.In<number>;/** Height of the scissor rectangle. */ysize: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Enable/disable scissor testing on the active framebuffer.* @param enable True - enable scissor testing. False - disable scissor testing.*/- scissor_test_set(enable: H.In<boolean>): any;+ scissor_test_set(enable: H.In<boolean>): H.Ref<void>;/*** Enable/disable scissor testing on the active framebuffer.* @param enable True - enable scissor testing. False - disable scissor testing.@@ -253,7 +253,7 @@ export interface Api {* False - disable scissor testing.*/enable: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Viewport of the active framebuffer.* @returns The viewport as a tuple (x, y, xsize, ysize).@@ -267,7 +267,7 @@ export interface Api {* @param xsize Width of the viewport.* @param ysize Height of the viewport.*/- viewport_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): any;+ viewport_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): H.Ref<void>;/*** Specifies the viewport of the active framebuffer.* Note: The viewport state is not saved upon framebuffer rebind.@@ -285,6 +285,6 @@ export interface Api {xsize: H.In<number>;/** Height of the viewport. */ysize: H.In<number>;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/py/gpu_types.ts b/sdk/blender/src/gen/py/gpu_types.tsindex 3130ec38..406fd688 100644--- a/sdk/blender/src/gen/py/gpu_types.ts+++ b/sdk/blender/src/gen/py/gpu_types.ts@@ -97,7 +97,7 @@ export interface GPUBatch {* Current a batch can have at most GPU_BATCH_VBO_MAX_LEN vertex buffers.* @param buf The vertex buffer that will be added to the batch.*/- vertbuf_add(buf: P.gpu_types.GPUVertBuf): any;+ vertbuf_add(buf: P.gpu_types.GPUVertBuf): H.Ref<void>;/*** Add another vertex buffer to the Batch.* It is not possible to add more vertices to the batch using this method.@@ -110,7 +110,7 @@ export interface GPUBatch {vertbuf_add(kw: {/** The vertex buffer that will be added to the batch. */buf: P.gpu_types.GPUVertBuf;- }): any;+ }): H.Ref<void>;/*** Assign a shader to this batch that will be used for drawing when not overwritten later.* Note: This method has to be called in the draw context that the batch will be drawn in.@@ -118,7 +118,7 @@ export interface GPUBatch {* set the shader when calling :meth:`gpu.types.GPUBatch.draw`.* @param program The program/shader the batch will use in future draw calls.*/- program_set(program: P.gpu_types.GPUShader): any;+ program_set(program: P.gpu_types.GPUShader): H.Ref<void>;/*** Assign a shader to this batch that will be used for drawing when not overwritten later.* Note: This method has to be called in the draw context that the batch will be drawn in.@@ -129,12 +129,12 @@ export interface GPUBatch {program_set(kw: {/** The program/shader the batch will use in future draw calls. */program: P.gpu_types.GPUShader;- }): any;+ }): H.Ref<void>;/*** Run the drawing shader with the parameters assigned to the batch.* @param shader Shader that performs the drawing operations. If ``None`` is passed, the last shader set to this batch will run.*/- draw(shader?: P.gpu_types.GPUShader | null): any;+ draw(shader?: P.gpu_types.GPUShader | null): H.Ref<void>;/*** Run the drawing shader with the parameters assigned to the batch.* @param shader Shader that performs the drawing operations. If ``None`` is passed, the last shader set to this batch will run.@@ -145,7 +145,7 @@ export interface GPUBatch {* If ``None`` is passed, the last shader set to this batch will run.*/shader?: P.gpu_types.GPUShader | null;- }): any;+ }): H.Ref<void>;/*** Draw multiple instances of the drawing program with the parameters assigned* to the batch. In the vertex shader, ``gl_InstanceID`` will contain the instance@@ -161,7 +161,7 @@ export interface GPUBatch {* vertex buffer.*/instance_count?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Draw multiple instances of the drawing program with the parameters assigned* to the batch. In the vertex shader, ``gl_InstanceID`` will contain the instance@@ -179,7 +179,7 @@ export interface GPUBatch {* vertex buffer.*/instance_count?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Run the drawing program with the parameters assigned to the batch. Only draw the ``elem_count`` elements of the index buffer starting at ``elem_start``.* @param program Program that performs the drawing operations.@@ -196,7 +196,7 @@ export interface GPUBatch {* index buffer will be drawn.*/elem_count?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Run the drawing program with the parameters assigned to the batch. Only draw the ``elem_count`` elements of the index buffer starting at ``elem_start``.* @param program Program that performs the drawing operations.@@ -215,7 +215,7 @@ export interface GPUBatch {* index buffer will be drawn.*/elem_count?: H.In<number>;- }): any;+ }): H.Ref<void>;}/** The class gpu.types.GPUBatch: called, a new one. */export interface GPUBatchClass {@@ -282,7 +282,7 @@ export interface GPUFrameBuffer {depth?: H.In<number | null>;/** stencil value. */stencil?: H.In<number | null>;- }): any;+ }): H.Ref<void>;/*** Set the viewport for this framebuffer object.* Note: The viewport state is not saved upon framebuffer rebind.@@ -291,7 +291,7 @@ export interface GPUFrameBuffer {* @param xsize Width of the viewport.* @param ysize Height of the viewport.*/- viewport_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): any;+ viewport_set(x: H.In<number>, y: H.In<number>, xsize: H.In<number>, ysize: H.In<number>): H.Ref<void>;/*** Set the viewport for this framebuffer object.* Note: The viewport state is not saved upon framebuffer rebind.@@ -309,7 +309,7 @@ export interface GPUFrameBuffer {xsize: H.In<number>;/** Height of the viewport. */ysize: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Returns position and dimension to current viewport.* @returns The viewport as ``(x, y, width, height)``.@@ -449,7 +449,7 @@ export interface GPUOffScreen {unbind(kw?: {/** Restore the OpenGL state, can only be used when the state has been saved before. */restore?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Draw the 3d viewport in the offscreen object.* @param scene Scene to draw.@@ -464,7 +464,7 @@ export interface GPUOffScreen {do_color_management?: H.In<boolean>;/** Draw background. */draw_background?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Draw the 3d viewport in the offscreen object.* @param scene Scene to draw.@@ -491,12 +491,12 @@ export interface GPUOffScreen {do_color_management?: H.In<boolean>;/** Draw background. */draw_background?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Free the offscreen object.* The framebuffer, texture and render objects will no longer be accessible.*/- free(...args: any[]): any;+ free(...args: any[]): H.Ref<void>;/** The color texture attached. */get texture_color(): H.Ptr<P.gpu_types.GPUTexture>;set texture_color(v: P.gpu_types.GPUTexture);@@ -553,7 +553,7 @@ export interface GPUShader {* @param length Size of the uniform data type: - 1: float - 2: vec2 or float[2] - 3: vec3 or float[3] - 4: vec4 or float[4] - 9: mat3 - 16: mat4* @param count Specifies the number of elements, vector or matrices that are to be modified.*/- uniform_vector_float(location: H.In<number>, buffer: H.In<readonly number[]>, length: H.In<number>, count: H.In<number>): any;+ uniform_vector_float(location: H.In<number>, buffer: H.In<readonly number[]>, length: H.In<number>, count: H.In<number>): H.Ref<void>;/*** Set the buffer to fill the uniform.* @param location Location of the uniform variable to be modified.@@ -578,7 +578,7 @@ export interface GPUShader {length: H.In<number>;/** Specifies the number of elements, vector or matrices that are to be modified. */count: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Set the buffer to fill the uniform.* @param location Location of the uniform variable to be modified.@@ -586,7 +586,7 @@ export interface GPUShader {* @param length Size of the uniform data type.* @param count Specifies the number of elements that are to be modified.*/- uniform_vector_int(location: H.In<number>, buffer: H.In<H.Bytes>, length: H.In<number>, count: H.In<number>): any;+ uniform_vector_int(location: H.In<number>, buffer: H.In<H.Bytes>, length: H.In<number>, count: H.In<number>): H.Ref<void>;/*** Set the buffer to fill the uniform.* @param location Location of the uniform variable to be modified.@@ -603,13 +603,13 @@ export interface GPUShader {length: H.In<number>;/** Specifies the number of elements that are to be modified. */count: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.* @param value Value that will be used to update the specified uniform variable.*/- uniform_bool(name: H.In<string>, value: H.In<boolean | readonly boolean[]>): any;+ uniform_bool(name: H.In<string>, value: H.In<boolean | readonly boolean[]>): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.@@ -620,13 +620,13 @@ export interface GPUShader {name: H.In<string>;/** Value that will be used to update the specified uniform variable. */value: H.In<boolean | readonly boolean[]>;- }): any;+ }): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.* @param value Value that will be used to update the specified uniform variable.*/- uniform_float(name: H.In<string>, value: H.In<number | readonly number[]>): any;+ uniform_float(name: H.In<string>, value: H.In<number | readonly number[]>): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.@@ -637,13 +637,13 @@ export interface GPUShader {name: H.In<string>;/** Value that will be used to update the specified uniform variable. */value: H.In<number | readonly number[]>;- }): any;+ }): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.* @param seq Value that will be used to update the specified uniform variable.*/- uniform_int(name: H.In<string>, seq: H.In<number | readonly number[]>): any;+ uniform_int(name: H.In<string>, seq: H.In<number | readonly number[]>): H.Ref<void>;/*** Specify the value of a uniform variable for the current program object.* @param name Name of the uniform variable whose value is to be changed.@@ -654,13 +654,13 @@ export interface GPUShader {name: H.In<string>;/** Value that will be used to update the specified uniform variable. */seq: H.In<number | readonly number[]>;- }): any;+ }): H.Ref<void>;/*** Specify the value of a texture uniform variable for the current GPUShader.* @param name Name of the uniform variable whose texture is to be specified.* @param texture Texture to attach.*/- uniform_sampler(name: H.In<string>, texture: P.gpu_types.GPUTexture): any;+ uniform_sampler(name: H.In<string>, texture: P.gpu_types.GPUTexture): H.Ref<void>;/*** Specify the value of a texture uniform variable for the current GPUShader.* @param name Name of the uniform variable whose texture is to be specified.@@ -671,13 +671,13 @@ export interface GPUShader {name: H.In<string>;/** Texture to attach. */texture: P.gpu_types.GPUTexture;- }): any;+ }): H.Ref<void>;/*** Specify the value of an image variable for the current GPUShader.* @param name Name of the image variable to which the texture is to be bound.* @param texture Texture to attach.*/- image(name: H.In<string>, texture: P.gpu_types.GPUTexture): any;+ image(name: H.In<string>, texture: P.gpu_types.GPUTexture): H.Ref<void>;/*** Specify the value of an image variable for the current GPUShader.* @param name Name of the image variable to which the texture is to be bound.@@ -688,13 +688,13 @@ export interface GPUShader {name: H.In<string>;/** Texture to attach. */texture: P.gpu_types.GPUTexture;- }): any;+ }): H.Ref<void>;/*** Specify the value of a uniform buffer object variable for the current GPUShader.* @param name Name of the uniform variable whose UBO is to be specified.* @param ubo Uniform Buffer to attach.*/- uniform_block(name: H.In<string>, ubo: P.gpu_types.GPUUniformBuf): any;+ uniform_block(name: H.In<string>, ubo: P.gpu_types.GPUUniformBuf): H.Ref<void>;/*** Specify the value of a uniform buffer object variable for the current GPUShader.* @param name Name of the uniform variable whose UBO is to be specified.@@ -705,7 +705,7 @@ export interface GPUShader {name: H.In<string>;/** Uniform Buffer to attach. */ubo: P.gpu_types.GPUUniformBuf;- }): any;+ }): H.Ref<void>;/*** Get attribute location by name.* @returns The location of an attribute variable.@@ -756,7 +756,7 @@ export interface GPUShaderCreateInfo {* @param type The data type of the attribute.* @param name name of the attribute.*/- vertex_in(slot: H.In<number>, type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): any;+ vertex_in(slot: H.In<number>, type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): H.Ref<void>;/*** Add a vertex shader input attribute.* @param slot The attribute index.@@ -770,12 +770,12 @@ export interface GPUShaderCreateInfo {type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">;/** name of the attribute. */name: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Add a vertex shader output interface block.* @param interface_ Object describing the block.*/- vertex_out(interface_: P.gpu_types.GPUStageInterfaceInfo): any;+ vertex_out(interface_: P.gpu_types.GPUStageInterfaceInfo): H.Ref<void>;/*** Add a vertex shader output interface block.* @param interface_ Object describing the block.@@ -783,7 +783,7 @@ export interface GPUShaderCreateInfo {vertex_out(kw: {/** Object describing the block. */interface: P.gpu_types.GPUStageInterfaceInfo;- }): any;+ }): H.Ref<void>;/*** Specify a depth write behavior when modifying gl_FragDepth.*@@ -884,7 +884,7 @@ export interface GPUShaderCreateInfo {image(slot: H.In<number>, format: H.In<"RGBA8UI" | "RGBA8I" | "RGBA8" | "RGBA32UI" | "RGBA32I" | "RGBA32F" | "RGBA16UI" | "RGBA16I" | "RGBA16F" | "RGBA16" | "RG8UI" | "RG8I" | "RG8" | "RG32UI" | "RG32I" | "RG32F" | "RG16UI" | "RG16I" | "RG16F" | "RG16" | "R8UI" | "R8I" | "R8" | "R32UI" | "R32I" | "R32F" | "R16UI" | "R16I" | "R16F" | "R16" | "R11F_G11F_B10F" | "DEPTH32F_STENCIL8" | "DEPTH24_STENCIL8" | "SRGB8_A8" | "RGB16F" | "SRGB8_A8_DXT1" | "SRGB8_A8_DXT3" | "SRGB8_A8_DXT5" | "RGBA8_DXT1" | "RGBA8_DXT3" | "RGBA8_DXT5" | "DEPTH_COMPONENT32F" | "DEPTH_COMPONENT24" | "DEPTH_COMPONENT16">, type: H.In<"FLOAT_BUFFER" | "FLOAT_1D" | "FLOAT_1D_ARRAY" | "FLOAT_2D" | "FLOAT_2D_ARRAY" | "FLOAT_3D" | "FLOAT_CUBE" | "FLOAT_CUBE_ARRAY" | "INT_BUFFER" | "INT_1D" | "INT_1D_ARRAY" | "INT_2D" | "INT_2D_ARRAY" | "INT_3D" | "INT_CUBE" | "INT_CUBE_ARRAY" | "UINT_BUFFER" | "UINT_1D" | "UINT_1D_ARRAY" | "UINT_2D" | "UINT_2D_ARRAY" | "UINT_3D" | "UINT_CUBE" | "UINT_CUBE_ARRAY" | "SHADOW_2D" | "SHADOW_2D_ARRAY" | "SHADOW_CUBE" | "SHADOW_CUBE_ARRAY" | "DEPTH_2D" | "DEPTH_2D_ARRAY" | "DEPTH_CUBE" | "DEPTH_CUBE_ARRAY">, name: H.In<string>, kw?: {/** Set containing values that describe how the image resource is to be read or written. */qualifiers?: H.In<Set<"NO_RESTRICT" | "READ" | "WRITE">>;- }): any;+ }): H.Ref<void>;/*** Specify an image resource used for arbitrary load and store operations.* @param slot The image resource index.@@ -903,14 +903,14 @@ export interface GPUShaderCreateInfo {name: H.In<string>;/** Set containing values that describe how the image resource is to be read or written. */qualifiers?: H.In<Set<"NO_RESTRICT" | "READ" | "WRITE">>;- }): any;+ }): H.Ref<void>;/*** Specify an image texture sampler.* @param slot The image texture sampler index.* @param type The data type describing the format of each sampler unit.* @param name The image texture sampler name.*/- sampler(slot: H.In<number>, type: H.In<"FLOAT_BUFFER" | "FLOAT_1D" | "FLOAT_1D_ARRAY" | "FLOAT_2D" | "FLOAT_2D_ARRAY" | "FLOAT_3D" | "FLOAT_CUBE" | "FLOAT_CUBE_ARRAY" | "INT_BUFFER" | "INT_1D" | "INT_1D_ARRAY" | "INT_2D" | "INT_2D_ARRAY" | "INT_3D" | "INT_CUBE" | "INT_CUBE_ARRAY" | "UINT_BUFFER" | "UINT_1D" | "UINT_1D_ARRAY" | "UINT_2D" | "UINT_2D_ARRAY" | "UINT_3D" | "UINT_CUBE" | "UINT_CUBE_ARRAY" | "SHADOW_2D" | "SHADOW_2D_ARRAY" | "SHADOW_CUBE" | "SHADOW_CUBE_ARRAY" | "DEPTH_2D" | "DEPTH_2D_ARRAY" | "DEPTH_CUBE" | "DEPTH_CUBE_ARRAY">, name: H.In<string>): any;+ sampler(slot: H.In<number>, type: H.In<"FLOAT_BUFFER" | "FLOAT_1D" | "FLOAT_1D_ARRAY" | "FLOAT_2D" | "FLOAT_2D_ARRAY" | "FLOAT_3D" | "FLOAT_CUBE" | "FLOAT_CUBE_ARRAY" | "INT_BUFFER" | "INT_1D" | "INT_1D_ARRAY" | "INT_2D" | "INT_2D_ARRAY" | "INT_3D" | "INT_CUBE" | "INT_CUBE_ARRAY" | "UINT_BUFFER" | "UINT_1D" | "UINT_1D_ARRAY" | "UINT_2D" | "UINT_2D_ARRAY" | "UINT_3D" | "UINT_CUBE" | "UINT_CUBE_ARRAY" | "SHADOW_2D" | "SHADOW_2D_ARRAY" | "SHADOW_CUBE" | "SHADOW_CUBE_ARRAY" | "DEPTH_2D" | "DEPTH_2D_ARRAY" | "DEPTH_CUBE" | "DEPTH_CUBE_ARRAY">, name: H.In<string>): H.Ref<void>;/*** Specify an image texture sampler.* @param slot The image texture sampler index.@@ -924,7 +924,7 @@ export interface GPUShaderCreateInfo {type: H.In<"FLOAT_BUFFER" | "FLOAT_1D" | "FLOAT_1D_ARRAY" | "FLOAT_2D" | "FLOAT_2D_ARRAY" | "FLOAT_3D" | "FLOAT_CUBE" | "FLOAT_CUBE_ARRAY" | "INT_BUFFER" | "INT_1D" | "INT_1D_ARRAY" | "INT_2D" | "INT_2D_ARRAY" | "INT_3D" | "INT_CUBE" | "INT_CUBE_ARRAY" | "UINT_BUFFER" | "UINT_1D" | "UINT_1D_ARRAY" | "UINT_2D" | "UINT_2D_ARRAY" | "UINT_3D" | "UINT_CUBE" | "UINT_CUBE_ARRAY" | "SHADOW_2D" | "SHADOW_2D_ARRAY" | "SHADOW_CUBE" | "SHADOW_CUBE_ARRAY" | "DEPTH_2D" | "DEPTH_2D_ARRAY" | "DEPTH_CUBE" | "DEPTH_CUBE_ARRAY">;/** The image texture sampler name. */name: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Specify a global access constant.* @param type The data type of the constant.@@ -968,7 +968,7 @@ export interface GPUShaderCreateInfo {* .. seealso:: `GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__* @param source The vertex shader source code.*/- vertex_source(source: H.In<string>): any;+ vertex_source(source: H.In<string>): H.Ref<void>;/*** Vertex shader source code written in GLSL.*@@ -984,7 +984,7 @@ export interface GPUShaderCreateInfo {vertex_source(kw: {/** The vertex shader source code. */source: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Fragment shader source code written in GLSL.*@@ -997,7 +997,7 @@ export interface GPUShaderCreateInfo {* .. seealso:: `GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__* @param source The fragment shader source code.*/- fragment_source(source: H.In<string>): any;+ fragment_source(source: H.In<string>): H.Ref<void>;/*** Fragment shader source code written in GLSL.*@@ -1013,7 +1013,7 @@ export interface GPUShaderCreateInfo {fragment_source(kw: {/** The fragment shader source code. */source: H.In<string>;- }): any;+ }): H.Ref<void>;/*** compute shader source code written in GLSL.*@@ -1030,7 +1030,7 @@ export interface GPUShaderCreateInfo {* .. seealso:: `GLSL Cross Compilation <https://developer.blender.org/docs/features/gpu/glsl_cross_compilation/>`__* @param source The compute shader source code.*/- compute_source(source: H.In<string>): any;+ compute_source(source: H.In<string>): H.Ref<void>;/*** compute shader source code written in GLSL.*@@ -1050,7 +1050,7 @@ export interface GPUShaderCreateInfo {compute_source(kw: {/** The compute shader source code. */source: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Source code included before resource declaration. Useful for defining structs used by Uniform Buffers.*@@ -1061,7 +1061,7 @@ export interface GPUShaderCreateInfo {* "struct MyType {int foo; float bar;};"* @param source The source code defining types.*/- typedef_source(source: H.In<string>): any;+ typedef_source(source: H.In<string>): H.Ref<void>;/*** Source code included before resource declaration. Useful for defining structs used by Uniform Buffers.*@@ -1075,7 +1075,7 @@ export interface GPUShaderCreateInfo {typedef_source(kw: {/** The source code defining types. */source: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Add a preprocessing define directive. In GLSL it would be something like:*@@ -1085,7 +1085,7 @@ export interface GPUShaderCreateInfo {* @param name Token name.* @param value Text that replaces token occurrences.*/- define(name: H.In<string>, value: H.In<string>): any;+ define(name: H.In<string>, value: H.In<string>): H.Ref<void>;/*** Add a preprocessing define directive. In GLSL it would be something like:*@@ -1100,14 +1100,14 @@ export interface GPUShaderCreateInfo {name: H.In<string>;/** Text that replaces token occurrences. */value: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Specify the local group size for compute shaders.* @param x The local group size in the x dimension.* @param y The local group size in the y dimension. Optional. Defaults to 1.* @param z The local group size in the z dimension. Optional. Defaults to 1.*/- local_group_size(x: H.In<number>, y?: H.In<number>, z?: H.In<number>): any;+ local_group_size(x: H.In<number>, y?: H.In<number>, z?: H.In<number>): H.Ref<void>;/*** Specify the local group size for compute shaders.* @param x The local group size in the x dimension.@@ -1119,7 +1119,7 @@ export interface GPUShaderCreateInfo {y?: H.In<number>;/** The local group size in the z dimension. Optional. Defaults to 1. */z?: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Specify the local group size for compute shaders.* @param x The local group size in the x dimension.@@ -1133,7 +1133,7 @@ export interface GPUShaderCreateInfo {y?: H.In<number>;/** The local group size in the z dimension. Optional. Defaults to 1. */z?: H.In<number>;- }): any;+ }): H.Ref<void>;}/** The class gpu.types.GPUShaderCreateInfo: called, a new one. */export interface GPUShaderCreateInfoClass {@@ -1157,7 +1157,7 @@ export interface GPUStageInterfaceInfo {* @param type The data type of the attribute.* @param name name of the attribute.*/- smooth(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): any;+ smooth(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): H.Ref<void>;/*** Add an attribute with qualifier of type *smooth* to the interface block.* @param type The data type of the attribute.@@ -1168,13 +1168,13 @@ export interface GPUStageInterfaceInfo {type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">;/** name of the attribute. */name: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Add an attribute with qualifier of type ``flat`` to the interface block.* @param type The data type of the attribute.* @param name name of the attribute.*/- flat(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): any;+ flat(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): H.Ref<void>;/*** Add an attribute with qualifier of type ``flat`` to the interface block.* @param type The data type of the attribute.@@ -1185,13 +1185,13 @@ export interface GPUStageInterfaceInfo {type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">;/** name of the attribute. */name: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Add an attribute with qualifier of type ``no_perspective`` to the interface block.* @param type The data type of the attribute.* @param name name of the attribute.*/- no_perspective(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): any;+ no_perspective(type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">, name: H.In<string>): H.Ref<void>;/*** Add an attribute with qualifier of type ``no_perspective`` to the interface block.* @param type The data type of the attribute.@@ -1202,7 +1202,7 @@ export interface GPUStageInterfaceInfo {type: H.In<"FLOAT" | "VEC2" | "VEC3" | "VEC4" | "MAT3" | "MAT4" | "UINT" | "UVEC2" | "UVEC3" | "UVEC4" | "INT" | "IVEC2" | "IVEC3" | "IVEC4" | "BOOL">;/** name of the attribute. */name: H.In<string>;- }): any;+ }): H.Ref<void>;/** Name of the interface block. */get name(): H.Ref<string>;set name(v: H.In<string>);@@ -1238,7 +1238,7 @@ export interface GPUTexture {* @param format The format that describes the content of a single item. ``UINT_24_8`` is deprecated, use ``FLOAT`` instead.* @param value Sequence each representing the value to fill. Sizes 1..4 are supported.*/- clear(format?: H.In<"FLOAT" | "INT" | "UINT" | "UBYTE" | "UINT_24_8" | "10_11_11_REV">, value?: H.In<readonly number[]>): any;+ clear(format?: H.In<"FLOAT" | "INT" | "UINT" | "UBYTE" | "UINT_24_8" | "10_11_11_REV">, value?: H.In<readonly number[]>): H.Ref<void>;/*** Fill texture with specific value.* @param format The format that describes the content of a single item. ``UINT_24_8`` is deprecated, use ``FLOAT`` instead.@@ -1252,7 +1252,7 @@ export interface GPUTexture {format?: H.In<"FLOAT" | "INT" | "UINT" | "UBYTE" | "UINT_24_8" | "10_11_11_REV">;/** Sequence each representing the value to fill. Sizes 1..4 are supported. */value?: H.In<readonly number[]>;- }): any;+ }): H.Ref<void>;/*** Creates a buffer with the value of all pixels.* @returns The Buffer with the read pixels.@@ -1262,23 +1262,23 @@ export interface GPUTexture {* Set texture sampling method for coordinates outside of the [0..1] uv range along the x axis.* @param extend_mode the specified extent mode.*/- extend_mode_x(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): any;+ extend_mode_x(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): H.Ref<void>;/*** Set texture sampling method for coordinates outside of the [0..1] uv range along the y axis.* @param extend_mode the specified extent mode.*/- extend_mode_y(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): any;+ extend_mode_y(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): H.Ref<void>;/*** Set texture sampling method for coordinates outside of the [0..1] uv range along* both the x and y axis.* @param extend_mode the specified extent mode.*/- extend_mode(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): any;+ extend_mode(extend_mode?: H.In<"EXTEND" | "REPEAT" | "MIRRORED_REPEAT" | "CLAMP_TO_BORDER">): H.Ref<void>;/*** Set texture filter usage.* @param use_filter If set to true, the texture will use linear interpolation between neighboring texels.*/- filter_mode(use_filter: H.In<boolean>): any;+ filter_mode(use_filter: H.In<boolean>): H.Ref<void>;/*** Set texture filter usage.* @param use_filter If set to true, the texture will use linear interpolation between neighboring texels.@@ -1286,13 +1286,13 @@ export interface GPUTexture {filter_mode(kw: {/** If set to true, the texture will use linear interpolation between neighboring texels. */use_filter: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set texture filter and mip-map usage.* @param use_mipmap If set to true, the texture will use mip-mapping as anti-aliasing method.* @param use_filter If set to true, the texture will use linear interpolation between neighboring texels.*/- mipmap_mode(use_mipmap?: H.In<boolean>, use_filter?: H.In<boolean>): any;+ mipmap_mode(use_mipmap?: H.In<boolean>, use_filter?: H.In<boolean>): H.Ref<void>;/*** Set texture filter and mip-map usage.* @param use_mipmap If set to true, the texture will use mip-mapping as anti-aliasing method.@@ -1303,12 +1303,12 @@ export interface GPUTexture {use_mipmap?: H.In<boolean>;/** If set to true, the texture will use linear interpolation between neighboring texels. */use_filter?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Set anisotropic filter usage. This only has effect if mipmapping is enabled.* @param use_anisotropic If set to true, the texture will use anisotropic filtering.*/- anisotropic_filter(use_anisotropic: H.In<boolean>): any;+ anisotropic_filter(use_anisotropic: H.In<boolean>): H.Ref<void>;/*** Set anisotropic filter usage. This only has effect if mipmapping is enabled.* @param use_anisotropic If set to true, the texture will use anisotropic filtering.@@ -1316,7 +1316,7 @@ export interface GPUTexture {anisotropic_filter(kw: {/** If set to true, the texture will use anisotropic filtering. */use_anisotropic: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** Width of the texture. */get width(): H.Ref<number>;set width(v: H.In<number>);@@ -1347,7 +1347,7 @@ export interface GPUUniformBuf {* Update the data of the uniform buffer object.* @param data Data to fill the buffer.*/- update(data: H.In<H.Bytes>): any;+ update(data: H.In<H.Bytes>): H.Ref<void>;/*** Update the data of the uniform buffer object.* @param data Data to fill the buffer.@@ -1355,7 +1355,7 @@ export interface GPUUniformBuf {update(kw: {/** Data to fill the buffer. */data: H.In<H.Bytes>;- }): any;+ }): H.Ref<void>;}/** The class gpu.types.GPUUniformBuf: called, a new one. */export interface GPUUniformBufClass {@@ -1380,7 +1380,7 @@ export interface GPUVertBuf {* @param id Either the name or the id of the attribute.* @param data Buffer or sequence of data that should be stored in the buffer*/- attr_fill(id: H.In<number | string>, data: H.In<H.Bytes | readonly number[] | readonly (readonly number[])[]>): any;+ attr_fill(id: H.In<number | string>, data: H.In<H.Bytes | readonly number[] | readonly (readonly number[])[]>): H.Ref<void>;/*** Insert data into the buffer for a single attribute.* @param id Either the name or the id of the attribute.@@ -1391,7 +1391,7 @@ export interface GPUVertBuf {id: H.In<number | string>;/** Buffer or sequence of data that should be stored in the buffer */data: H.In<H.Bytes | readonly number[] | readonly (readonly number[])[]>;- }): any;+ }): H.Ref<void>;}/** The class gpu.types.GPUVertBuf: called, a new one. */export interface GPUVertBufClass {@@ -1411,7 +1411,7 @@ export interface GPUVertFormat {* @param len How many individual values the attribute consists of (e.g. 2 for uv coordinates).* @param fetch_mode How values from memory will be converted when used in the shader. This is mainly useful for memory optimizations when you want to store values with reduced precision. E.g. you can store a float in only 1 byte but it will be converted to a normal 4 byte float when used.*/- attr_add(id: H.In<string>, comp_type: H.In<"I8" | "U8" | "I16" | "U16" | "I32" | "U32" | "F32" | "I10">, len: H.In<number>, fetch_mode: H.In<"FLOAT" | "INT" | "INT_TO_FLOAT_UNIT">): any;+ attr_add(id: H.In<string>, comp_type: H.In<"I8" | "U8" | "I16" | "U16" | "I32" | "U32" | "F32" | "I10">, len: H.In<number>, fetch_mode: H.In<"FLOAT" | "INT" | "INT_TO_FLOAT_UNIT">): H.Ref<number>;/*** Add a new attribute to the format.* @param id Name of the attribute. Often ``position``, ``normal``, ...@@ -1436,7 +1436,7 @@ export interface GPUVertFormat {* converted to a normal 4 byte float when used.*/fetch_mode: H.In<"FLOAT" | "INT" | "INT_TO_FLOAT_UNIT">;- }): any;+ }): H.Ref<number>;}/** The class gpu.types.GPUVertFormat: called, a new one. */export interface GPUVertFormatClass {diff --git a/sdk/blender/src/gen/py/idprop_types.ts b/sdk/blender/src/gen/py/idprop_types.tsindex 76eb5d92..fc3cc32d 100644--- a/sdk/blender/src/gen/py/idprop_types.ts+++ b/sdk/blender/src/gen/py/idprop_types.ts@@ -104,7 +104,7 @@ export interface IDPropertyGroup extends AsyncIterable<any> {* Unlike :meth:`dict.update`, keyword arguments are not supported.* @param other Updates the values in the group with this.*/- update(other: H.In<P.idprop_types.IDPropertyGroup | H.DictIn<any>>): any;+ update(other: H.In<P.idprop_types.IDPropertyGroup | H.DictIn<any>>): H.Ref<void>;/*** Update key-value pairs from *other*, overwriting existing keys.*@@ -116,7 +116,7 @@ export interface IDPropertyGroup extends AsyncIterable<any> {update(kw: {/** Updates the values in the group with this. */other: H.In<P.idprop_types.IDPropertyGroup | H.DictIn<any>>;- }): any;+ }): H.Ref<void>;/*** Return the value for key, if it exists, else default.* @returns The value for the key, or *default* if not found.@@ -152,7 +152,7 @@ export interface IDPropertyGroup extends AsyncIterable<any> {*/to_dict(...args: any[]): H.Ref<Map<string, any>>;/** Clear all members from this group. */- clear(...args: any[]): any;+ clear(...args: any[]): H.Ref<void>;/** The name of this Group. */get name(): H.Ref<string>;set name(v: H.In<string>);diff --git a/sdk/blender/src/gen/py/imbuf_types.ts b/sdk/blender/src/gen/py/imbuf_types.tsindex b31ca0c4..b615c08e 100644--- a/sdk/blender/src/gen/py/imbuf_types.ts+++ b/sdk/blender/src/gen/py/imbuf_types.ts@@ -28,7 +28,7 @@ export interface ImBuf {resize(size: H.In<readonly [number, number]>, kw?: {/** Method of resizing ('FAST', 'BILINEAR'). */method?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Resize the image in-place.* @param size New size.@@ -38,13 +38,13 @@ export interface ImBuf {size: H.In<readonly [number, number]>;/** Method of resizing ('FAST', 'BILINEAR'). */method?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Crop the image in-place.* @param min Minimum pixel coordinates (X, Y), inclusive.* @param max Maximum pixel coordinates (X, Y), inclusive.*/- crop(min: H.In<readonly [number, number]>, max: H.In<readonly [number, number]>): any;+ crop(min: H.In<readonly [number, number]>, max: H.In<readonly [number, number]>): H.Ref<void>;/*** Crop the image in-place.* @param min Minimum pixel coordinates (X, Y), inclusive.@@ -55,7 +55,7 @@ export interface ImBuf {min: H.In<readonly [number, number]>;/** Maximum pixel coordinates (X, Y), inclusive. */max: H.In<readonly [number, number]>;- }): any;+ }): H.Ref<void>;/*** Return a context manager that yields a :class:`memoryview` of the image's pixel data, shaped ``(height, width, channels)``.*@@ -77,7 +77,7 @@ export interface ImBuf {* The previous buffer is freed.* @param buffer_type The buffer type.*/- convert_buffer_type(buffer_type: H.In<"BYTE" | "FLOAT">): any;+ convert_buffer_type(buffer_type: H.In<"BYTE" | "FLOAT">): H.Ref<void>;/*** Convert the image's pixel buffer to the given type.* When the image is already of the given type this is a no-op.@@ -87,9 +87,9 @@ export interface ImBuf {convert_buffer_type(kw: {/** The buffer type. */buffer_type: H.In<"BYTE" | "FLOAT">;- }): any;+ }): H.Ref<void>;/** Clear image data immediately (causing an error on re-use). */- free(...args: any[]): any;+ free(...args: any[]): H.Ref<void>;/*** Return a copy of the image.* @returns A copy of the image.diff --git a/sdk/blender/src/gen/py/mathutils_kdtree.ts b/sdk/blender/src/gen/py/mathutils_kdtree.tsindex 6d0565d7..db26bdb9 100644--- a/sdk/blender/src/gen/py/mathutils_kdtree.ts+++ b/sdk/blender/src/gen/py/mathutils_kdtree.ts@@ -26,7 +26,7 @@ export interface KDTree {* @param co Point 3d position.* @param index The index of the point (must be non-negative).*/- insert(co: H.In<readonly number[]>, index: H.In<number>): any;+ insert(co: H.In<readonly number[]>, index: H.In<number>): H.Ref<void>;/*** Insert a point into the KDTree.* @param co Point 3d position.@@ -37,7 +37,7 @@ export interface KDTree {co: H.In<readonly number[]>;/** The index of the point (must be non-negative). */index: H.In<number>;- }): any;+ }): H.Ref<void>;/*** Balance the tree.*@@ -45,7 +45,7 @@ export interface KDTree {** This builds the entire tree, avoid calling after each insertion.*/- balance(...args: any[]): any;+ balance(...args: any[]): H.Ref<void>;/*** Find nearest point to ``co``.* @returns Returns (position, index, distance),diff --git a/sdk/blender/src/gen/py/mathutils_noise.ts b/sdk/blender/src/gen/py/mathutils_noise.tsindex b6acf22c..e565477b 100644--- a/sdk/blender/src/gen/py/mathutils_noise.ts+++ b/sdk/blender/src/gen/py/mathutils_noise.ts@@ -127,7 +127,7 @@ export interface Api {* Sets the random seed used for random_unit_vector, random_vector, and random.* @param seed Seed used for the random generator. When seed is zero, the current time will be used instead.*/- seed_set(seed: H.In<number>): any;+ seed_set(seed: H.In<number>): H.Ref<void>;/*** Returns the turbulence value from the noise basis at the specified position.* @returns The turbulence value.diff --git a/sdk/blender/src/gen/rna/B.ts b/sdk/blender/src/gen/rna/B.tsindex a9e6db10..656ec009 100644--- a/sdk/blender/src/gen/rna/B.ts+++ b/sdk/blender/src/gen/rna/B.ts@@ -535,7 +535,7 @@ export interface BlendData extends R.bpy_struct {* ID collections), but less safe/versatile (it can break Blender, e.g. by removing all scenes...).* @param ids Sequence of IDs (types can be mixed).*/- batch_remove(ids: H.In<readonly R.ID[]>): any;+ batch_remove(ids: H.In<readonly R.ID[]>): H.Ref<void>;/*** Remove (delete) several IDs at once.*@@ -546,7 +546,7 @@ export interface BlendData extends R.bpy_struct {batch_remove(kw: {/** Sequence of IDs (types can be mixed). */ids: H.In<readonly R.ID[]>;- }): any;+ }): H.Ref<void>;/*** Call ``visit_path_fn`` for the file paths used by all ID data-blocks in current ``bpy.data``.*@@ -560,7 +560,7 @@ export interface BlendData extends R.bpy_struct {visit_types?: H.In<Set<string> | null>;/** Set of flags that influence which data-blocks are visited. See :ref:`rna_enum_file_path_foreach_flag_items`. */flags?: H.In<Set<string>>;- }): any;+ }): H.Ref<void>;/*** Call ``visit_path_fn`` for the file paths used by all ID data-blocks in current ``bpy.data``.*@@ -576,7 +576,7 @@ export interface BlendData extends R.bpy_struct {visit_types?: H.In<Set<string> | null>;/** Set of flags that influence which data-blocks are visited. See :ref:`rna_enum_file_path_foreach_flag_items`. */flags?: H.In<Set<string>>;- }): any;+ }): H.Ref<void>;/*** Returns a mapping of all ID data-blocks in current ``bpy.data`` to a set of all file paths used by them.*diff --git a/sdk/blender/src/gen/rna/G.ts b/sdk/blender/src/gen/rna/G.tsindex 66d23103..4b3fc386 100644--- a/sdk/blender/src/gen/rna/G.ts+++ b/sdk/blender/src/gen/rna/G.ts@@ -9502,7 +9502,7 @@ export interface Gizmo extends R.bpy_struct {* @param set Function that takes a single value argument and applies it.* @param range Function that returns a (min, max) tuple for gizmos that use a range. The returned value is not used.*/- target_set_handler(target: H.In<string>, get: any, set: any, range?: any): any;+ target_set_handler(target: H.In<string>, get: any, set: any, range?: any): H.Ref<void>;/*** Assigns callbacks to a gizmos property.* @param target Target property name.@@ -9513,7 +9513,7 @@ export interface Gizmo extends R.bpy_struct {target_set_handler(target: H.In<string>, get: any, set: any, kw: {/** Function that returns a (min, max) tuple for gizmos that use a range. The returned value is not used. */range?: any;- }): any;+ }): H.Ref<void>;/*** Assigns callbacks to a gizmos property.* @param target Target property name.@@ -9530,12 +9530,12 @@ export interface Gizmo extends R.bpy_struct {set: any;/** Function that returns a (min, max) tuple for gizmos that use a range. The returned value is not used. */range?: any;- }): any;+ }): H.Ref<void>;/*** Set the value of this target property.* @param target Target property name.*/- target_set_value(target: H.In<string>): any;+ target_set_value(target: H.In<string>): H.Ref<void>;/*** Set the value of this target property.* @param target Target property name.@@ -9543,7 +9543,7 @@ export interface Gizmo extends R.bpy_struct {target_set_value(kw: {/** Target property name. */target: H.In<string>;- }): any;+ }): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/O.ts b/sdk/blender/src/gen/rna/O.tsindex 157be8e0..f495ac6a 100644--- a/sdk/blender/src/gen/rna/O.ts+++ b/sdk/blender/src/gen/rna/O.ts@@ -1419,7 +1419,7 @@ export interface Operator extends R.bpy_struct {* @param message The message or a function that returns the message.* @param args A sequence of arguments to pass to ``message``, if it's a callable, otherwise argument is not available.*/- poll_message_set(message: any, ...args: any[]): any;+ poll_message_set(message: any, ...args: any[]): H.Ref<void>;}/** bpy.types.OperatorFileListElement */diff --git a/sdk/blender/src/gen/rna/S.ts b/sdk/blender/src/gen/rna/S.tsindex 31b8d5be..edf3744c 100644--- a/sdk/blender/src/gen/rna/S.ts+++ b/sdk/blender/src/gen/rna/S.ts@@ -6267,7 +6267,7 @@ export interface Space extends R.bpy_struct {* @param handler The draw handler that should be removed.* @param region_type Region type the callback was added to.*/- draw_handler_remove(handler: any, region_type: H.In<string>): any;+ draw_handler_remove(handler: any, region_type: H.In<string>): H.Ref<void>;/*** Remove a draw handler that was added previously.* @param handler The draw handler that should be removed.@@ -6278,7 +6278,7 @@ export interface Space extends R.bpy_struct {handler: any;/** Region type the callback was added to. */region_type: H.In<string>;- }): any;+ }): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/T.ts b/sdk/blender/src/gen/rna/T.tsindex e84d3b66..2855c1ea 100644--- a/sdk/blender/src/gen/rna/T.ts+++ b/sdk/blender/src/gen/rna/T.ts@@ -227,7 +227,7 @@ export interface Text extends R.ID {* The values match Python's slicing logic (negative values count backwards from the end, the end value is not inclusive).*/range?: H.In<readonly [readonly [number, number], readonly [number, number]] | null>;- }): any;+ }): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/W.ts b/sdk/blender/src/gen/rna/W.tsindex 901c4f02..fbc27cad 100644--- a/sdk/blender/src/gen/rna/W.ts+++ b/sdk/blender/src/gen/rna/W.ts@@ -1112,7 +1112,7 @@ export interface WindowManager extends R.ID {* Remove a draw cursor handler that was added previously.* @param handler The draw cursor handler that should be removed.*/- draw_cursor_remove(handler: any): any;+ draw_cursor_remove(handler: any): H.Ref<void>;/*** Remove a draw cursor handler that was added previously.* @param handler The draw cursor handler that should be removed.@@ -1120,7 +1120,7 @@ export interface WindowManager extends R.ID {draw_cursor_remove(kw: {/** The draw cursor handler that should be removed. */handler: any;- }): any;+ }): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/_misc.ts b/sdk/blender/src/gen/rna/_misc.tsindex 40d17300..19ad9239 100644--- a/sdk/blender/src/gen/rna/_misc.ts+++ b/sdk/blender/src/gen/rna/_misc.ts@@ -190,7 +190,7 @@ export interface bpy_struct {* Unset a property, will use default value afterward.* @param property Property name.*/- property_unset(property: H.In<string>): any;+ property_unset(property: H.In<string>): H.Ref<void>;/*** Check if a property is hidden.* @returns True when the property is hidden.@@ -272,7 +272,7 @@ export interface bpy_struct {/** @returns the parent group for an RNA struct's custom IDProperties. */id_properties_ensure(...args: any[]): H.Ptr<P.idprop_types.IDPropertyGroup>;/** Remove the parent group for an RNA struct's custom IDProperties. */- id_properties_clear(...args: any[]): any;+ id_properties_clear(...args: any[]): H.Ref<void>;/*** @returns An object used to manage an IDProperty's UI data.* @param key String name of the property.diff --git a/sdk/blender/test/cret.test.ts b/sdk/blender/test/cret.test.tsnew file mode 100644index 00000000..1b41d847--- /dev/null+++ b/sdk/blender/test/cret.test.ts@@ -0,0 +1,54 @@+// BL22: the property types tools/cret.json reads from Blender's C source, against what Blender gives: every property+// it types on live bmesh, aud, imbuf and mathutils objects is read in Blender, and its value must be that Python type.+import { afterAll, beforeAll, describe, expect, test } from "bun:test";+import { join } from "node:path";+import { findBlender, start, type Blender } from "../src";++const has = findBlender() !== null;+let b: Blender;+beforeAll(async () => {+ if (has) b = await start();+});+afterAll(async () => {+ await b?.close();+});++const PROBE = (cret: string) => `+import inspect, json, bmesh, aud, imbuf, mathutils+families = json.load(open(${JSON.stringify(cret)}))["families"]+PY = {"bool": (bool,), "int": (int,), "float": (float,), "str": (str,)}+def ok(t, v):+ if t.startswith("tuple["):+ items = [x.strip() for x in t[6:-1].split(",")]+ return isinstance(v, tuple) and len(v) == len(items) and all(ok(i, x) for i, x in zip(items, v))+ return isinstance(v, PY[t]) and not (t == "int" and isinstance(v, bool))+bm = bmesh.new()+a, b, c = (bm.verts.new(p) for p in ((0, 0, 0), (1, 0, 0), (0, 1, 0)))+e = bm.edges.new((a, b))+f = bm.faces.new((a, b, c))+dev = aud.Device()+sound = aud.Sound.sine(440)+seq = aud.Sequence()+live = {"bmesh": [bm, a, e, f, f.loops[0], bm.verts, bm.edges, bm.faces, bm.select_history],+ "aud": [dev, sound, seq, dev.play(sound), seq.add(sound, 0, 1, 0), aud.DynamicMusic(dev)],+ "generic": [imbuf.new((4, 4))],+ "mathutils": [mathutils.kdtree.KDTree(1),+ mathutils.bvhtree.BVHTree.FromPolygons([(0, 0, 0), (1, 0, 0), (0, 1, 0)], [(0, 1, 2)])]}+result = []+for fam, objs in live.items():+ for o in objs:+ for name, t in families[fam]["getters"].items():+ if not inspect.isgetsetdescriptor(inspect.getattr_static(type(o), name, None)):+ continue+ v = getattr(o, name)+ result.append([fam, type(o).__name__, name, t, ok(t, v), repr(v)[:60]])+`;++describe.skipIf(!has)("C properties typed from Blender's source", () => {+ test("each reads as the Python type tools/cret.json gives it", async () => {+ const rows = await b.py.exec<[string, string, string, string, boolean, string][]>(PROBE(join(import.meta.dir, "../tools/cret.json")));+ const wrong = rows.filter((r) => !r[4]).map(([fam, cls, name, t, , v]) => `${fam} ${cls}.${name}: typed ${t}, Blender gives ${v}`);+ expect(wrong).toEqual([]);+ expect(rows.length).toBeGreaterThan(80);+ });+});diff --git a/sdk/blender/tools/cret.json b/sdk/blender/tools/cret.jsonnew file mode 100644index 00000000..648e5e98--- /dev/null+++ b/sdk/blender/tools/cret.json@@ -0,0 +1,437 @@+{+ "blender": "5.2.1",+ "families": {+ "bmesh": {+ "methods": {+ "add": "None",+ "calc_angle": "float",+ "calc_area": "float",+ "calc_length": "float",+ "calc_perimeter": "float",+ "calc_shell_factor": "float",+ "calc_volume": "float",+ "clear": "None",+ "copy_from": "None",+ "copy_from_face_interp": "None",+ "copy_from_vert_interp": "None",+ "discard": "None",+ "ensure_lookup_table": "None",+ "face_flip": "None",+ "free": "None",+ "from_mesh": "None",+ "from_object": "None",+ "hide_set": "None",+ "index_update": "None",+ "intersect_face_point": "bool",+ "normal_flip": "None",+ "normal_update": "None",+ "remove": "None",+ "select_flush": "None",+ "select_flush_mode": "None",+ "select_set": "None",+ "sort": "None",+ "to_mesh": "None",+ "transform": "None",+ "update_edit_mesh": "None",+ "uv_select_edge_set": "None",+ "uv_select_flush": "None",+ "uv_select_flush_mode": "None",+ "uv_select_flush_shared": "None",+ "uv_select_foreach_set": "None",+ "uv_select_foreach_set_from_mesh": "None",+ "uv_select_set": "None",+ "uv_select_sync_from_mesh": "None",+ "uv_select_sync_to_mesh": "None",+ "uv_select_vert_set": "None",+ "validate": "None",+ "vert_dissolve": "bool",+ "vert_splice": "None"+ },+ "getters": {+ "hide": "bool",+ "index": "int",+ "is_boundary": "bool",+ "is_contiguous": "bool",+ "is_convex": "bool",+ "is_manifold": "bool",+ "is_singleton": "bool",+ "is_valid": "bool",+ "is_wire": "bool",+ "is_wrapped": "bool",+ "material_index": "int",+ "name": "str",+ "pin_uv": "bool",+ "seam": "bool",+ "select": "bool",+ "smooth": "bool",+ "tag": "bool",+ "use_loose": "bool",+ "use_root": "bool",+ "uv_select": "bool",+ "uv_select_edge": "bool",+ "uv_select_sync_valid": "bool",+ "uv_select_vert": "bool"+ }+ },+ "gpu": {+ "methods": {+ "__enter__": "None",+ "__exit__": "None",+ "_program_use_begin": "None",+ "_program_use_end": "None",+ "anisotropic_filter": "None",+ "attr_add": "int",+ "attr_fill": "None",+ "attr_from_name": "int",+ "backend_type_get": "str",+ "blend_get": "str",+ "blend_set": "None",+ "clear": "None",+ "clip_distances_set": "None",+ "color_mask_set": "None",+ "compute_shader_support_get": "bool",+ "compute_source": "None",+ "define": "None",+ "depth_mask_get": "bool",+ "depth_mask_set": "None",+ "depth_test_get": "str",+ "depth_test_set": "None",+ "device_type_get": "str",+ "dispatch": "None",+ "draw": "None",+ "draw_instanced": "None",+ "draw_range": "None",+ "draw_view3d": "None",+ "extend_mode": "None",+ "extend_mode_x": "None",+ "extend_mode_y": "None",+ "face_culling_set": "None",+ "filter_mode": "None",+ "flat": "None",+ "fragment_source": "None",+ "free": "None",+ "front_facing_set": "None",+ "hdr_support_get": "bool",+ "image": "None",+ "init": "None",+ "line_width_get": "float",+ "line_width_set": "None",+ "load_id": "None",+ "load_identity": "None",+ "load_matrix": "None",+ "load_projection_matrix": "None",+ "local_group_size": "None",+ "max_batch_indices_get": "int",+ "max_batch_vertices_get": "int",+ "max_images_get": "int",+ "max_texture_layers_get": "int",+ "max_texture_size_get": "int",+ "max_textures_frag_get": "int",+ "max_textures_geom_get": "int",+ "max_textures_get": "int",+ "max_textures_vert_get": "int",+ "max_uniforms_frag_get": "int",+ "max_uniforms_vert_get": "int",+ "max_varying_floats_get": "int",+ "max_vertex_attribs_get": "int",+ "max_work_group_count_get": "int",+ "max_work_group_size_get": "int",+ "mipmap_mode": "None",+ "multiply_matrix": "None",+ "no_perspective": "None",+ "point_size_set": "None",+ "pop": "None",+ "pop_projection": "None",+ "program_point_size_set": "None",+ "program_set": "None",+ "push": "None",+ "push_projection": "None",+ "renderer_get": "str",+ "reset": "None",+ "sampler": "None",+ "scale": "None",+ "scale_uniform": "None",+ "scissor_set": "None",+ "scissor_test_set": "None",+ "shader_image_load_store_support_get": "bool",+ "smooth": "None",+ "translate": "None",+ "typedef_source": "None",+ "unbind": "None",+ "uniform_block": "None",+ "uniform_block_from_name": "int",+ "uniform_bool": "None",+ "uniform_float": "None",+ "uniform_from_name": "int",+ "uniform_int": "None",+ "uniform_sampler": "None",+ "uniform_vector_float": "None",+ "uniform_vector_int": "None",+ "update": "None",+ "vendor_get": "str",+ "version_get": "str",+ "vertbuf_add": "None",+ "vertex_in": "None",+ "vertex_out": "None",+ "vertex_source": "None",+ "viewport_set": "None"+ },+ "getters": {+ "format": "str",+ "height": "int",+ "identifier": "str",+ "index": "int",+ "is_bound": "bool",+ "program": "int",+ "width": "int"+ }+ },+ "mathutils": {+ "methods": {+ "adjugate": "None",+ "area_tri": "float",+ "balance": "None",+ "box_fit_2d": "float",+ "cell": "float",+ "conjugate": "None",+ "determinant": "float",+ "distance_point_to_plane": "float",+ "fractal": "float",+ "hetero_terrain": "float",+ "hybrid_multi_fractal": "float",+ "identity": "None",+ "insert": "None",+ "intersect_point_quad_2d": "int",+ "intersect_point_tri_2d": "int",+ "intersect_tri_tri_2d": "bool",+ "invert": "None",+ "invert_safe": "None",+ "make_compatible": "None",+ "multi_fractal": "float",+ "negate": "None",+ "noise": "float",+ "normalize": "None",+ "random": "float",+ "resize": "None",+ "resize_2d": "None",+ "resize_3d": "None",+ "resize_4d": "None",+ "resize_4x4": "None",+ "ridged_multi_fractal": "float",+ "rotate": "None",+ "rotate_axis": "None",+ "seed_set": "None",+ "transpose": "None",+ "turbulence": "float",+ "variable_lacunarity": "float",+ "volume_tetrahedron": "float",+ "zero": "None"+ },+ "getters": {+ "angle": "float",+ "h": "float",+ "is_frozen": "bool",+ "is_identity": "bool",+ "is_negative": "bool",+ "is_orthogonal": "bool",+ "is_orthogonal_axis_vectors": "bool",+ "is_valid": "bool",+ "is_wrapped": "bool",+ "length": "float",+ "length_squared": "float",+ "magnitude": "float",+ "median_scale": "float",+ "order": "str",+ "s": "float",+ "v": "float"+ }+ },+ "generic": {+ "methods": {+ "__exit__": "None",+ "aspect": "None",+ "clamp": "float",+ "clear": "None",+ "clipping": "None",+ "color": "None",+ "convert_buffer_type": "None",+ "crop": "None",+ "disable": "None",+ "draw": "None",+ "draw_buffer": "None",+ "enable": "None",+ "free": "None",+ "lerp": "float",+ "position": "None",+ "resize": "None",+ "rotation": "None",+ "shadow": "None",+ "shadow_offset": "None",+ "size": "None",+ "smoothstep": "float",+ "unload": "None",+ "update": "None",+ "update_from": "None",+ "word_wrap": "None"+ },+ "getters": {+ "channels": "int",+ "compress": "int",+ "file_type": "str",+ "has_read_file": "bool",+ "has_read_memory": "bool",+ "has_write_file": "bool",+ "has_write_memory": "bool",+ "id": "str",+ "name": "str",+ "planes": "int",+ "quality": "int",+ "typecode": "str"+ }+ },+ "bpy": {+ "methods": {+ "_bl_owner_id_set": "None",+ "_driver_secure_code_test": "bool",+ "_ghost_backend": "str",+ "as_pointer": "int",+ "batch_remove": "None",+ "bpy_atexit": "None",+ "callback_remove": "None",+ "clear": "None",+ "clear_by_owner": "None",+ "draw_cursor_remove": "None",+ "draw_handler_remove": "None",+ "driver_remove": "bool",+ "file_path_foreach": "None",+ "find": "int",+ "id_free_weakref_cb": "None",+ "id_properties_clear": "None",+ "idname": "str",+ "idname_py": "str",+ "is_job_running": "bool",+ "is_property_hidden": "bool",+ "is_property_overridable_library": "bool",+ "is_property_readonly": "bool",+ "is_property_set": "bool",+ "is_registered": "bool",+ "keyframe_delete": "bool",+ "keyframe_insert": "bool",+ "logging_set": "None",+ "memory_usage_undo": "int",+ "move": "None",+ "new_triangles": "int",+ "new_triangles_from_file": "int",+ "orphans_purge": "int",+ "poll_message_set": "None",+ "property_overridable_library_set": "bool",+ "property_unset": "None",+ "publish_rna": "None",+ "region_from_string": "None",+ "register": "None",+ "register_class": "None",+ "release": "None",+ "remove": "None",+ "subscribe_rna": "None",+ "target_set_handler": "None",+ "target_set_value": "None",+ "unregister": "None",+ "unregister_class": "None",+ "unregister_cli_command": "None",+ "update": "None"+ },+ "getters": {+ "autoexec_fail": "bool",+ "autoexec_fail_quiet": "bool",+ "debug": "bool",+ "debug_depsgraph": "bool",+ "debug_depsgraph_build": "bool",+ "debug_depsgraph_eval": "bool",+ "debug_depsgraph_pretty": "bool",+ "debug_depsgraph_tag": "bool",+ "debug_depsgraph_time": "bool",+ "debug_events": "bool",+ "debug_freestyle": "bool",+ "debug_handlers": "bool",+ "debug_io": "bool",+ "debug_python": "bool",+ "debug_simdata": "bool",+ "debug_value": "int",+ "debug_wm": "bool",+ "is_cache": "bool",+ "is_expanded": "bool",+ "is_readonly": "bool",+ "online_access": "bool",+ "online_access_override": "bool",+ "render_icon_size": "int",+ "render_preview_size": "int",+ "use_event_simulate": "bool",+ "use_userpref_skip_save_on_exit": "bool"+ }+ },+ "aud": {+ "methods": {+ "addCategory": "int",+ "addImpulseResponseFromSound": "bool",+ "addScene": "int",+ "addSound": "None",+ "addTransition": "None",+ "clean": "None",+ "getVolume": "float",+ "lock": "None",+ "move": "None",+ "pause": "bool",+ "readSingle": "float",+ "remove": "None",+ "resume": "bool",+ "setAnimationData": "None",+ "setVolume": "bool",+ "stop": "bool",+ "stopAll": "None",+ "unlock": "None",+ "write": "None",+ "writeConstantRange": "None"+ },+ "getters": {+ "animated": "bool",+ "attenuation": "float",+ "azimuth": "float",+ "channels": "int",+ "cone_angle_inner": "float",+ "cone_angle_outer": "float",+ "cone_volume_outer": "float",+ "count": "int",+ "distance": "float",+ "distance_maximum": "float",+ "distance_model": "int",+ "distance_reference": "float",+ "doppler_factor": "float",+ "elevation": "float",+ "fadeTime": "float",+ "format": "int",+ "fps": "float",+ "keep": "bool",+ "length": "int",+ "listener_location": "tuple[float, float, float]",+ "listener_orientation": "tuple[float, float, float, float]",+ "listener_velocity": "tuple[float, float, float]",+ "location": "tuple[float, float, float]",+ "loop_count": "int",+ "muted": "bool",+ "orientation": "tuple[float, float, float, float]",+ "pitch": "float",+ "position": "float",+ "rate": "float",+ "relative": "bool",+ "scene": "int",+ "specs": "tuple[float, int]",+ "speed_of_sound": "float",+ "status": "bool",+ "velocity": "tuple[float, float, float]",+ "volume": "float",+ "volume_maximum": "float",+ "volume_minimum": "float"+ }+ }+ }+}diff --git a/sdk/blender/tools/cret.sh b/sdk/blender/tools/cret.shnew file mode 100755index 00000000..361e9b12--- /dev/null+++ b/sdk/blender/tools/cret.sh@@ -0,0 +1,13 @@+#!/usr/bin/env bash+# Rewrites tools/cret.json (BL22): what Blender's C methods and properties return where their docstrings don't say,+# read from the Python bindings' own C source at the version gen.sh dumps (a sparse, blob-less clone of that tag). Run+# it when the Blender that gen.sh reads moves to a new version, then gen.sh.+# tools/cret.sh VERSION (e.g. 5.2.1: the tag v5.2.1 of github.com/blender/blender)+set -euo pipefail+here="$(cd "$(dirname "$0")" && pwd)"+version="${1:?usage: tools/cret.sh VERSION (e.g. 5.2.1)}"+src="$(mktemp -d)"+trap 'rm -rf "$src"' EXIT+git clone -q --depth 1 --filter=blob:none --sparse --branch "v$version" https://github.com/blender/blender.git "$src" 2>/dev/null+git -C "$src" sparse-checkout set source/blender/python extern/audaspace/bindings/python+bun "$here/gen/cret.ts" "$src" "$version" "$here/cret.json"diff --git a/sdk/blender/tools/dump.py b/sdk/blender/tools/dump.pyindex d60d8e2d..d9f65ab0 100644--- a/sdk/blender/tools/dump.py+++ b/sdk/blender/tools/dump.py@@ -122,12 +122,19 @@ def returns_none(fn):return True+def written(fn, d):+ """Marks a function written in Python (`py`: what it returns is read from its own source, never tools/cret.json's+ reading of C), and `none` when that source returns no value."""+ if inspect.isfunction(fn):+ d["py"] = True+ if returns_none(fn):+ d["none"] = True+ return d++def pyfunc(name, f):fn = getattr(f, "__func__", f)- d = {"id": name, "sig": sig(fn), "doc": doc(fn), "static": isinstance(f, (staticmethod, classmethod))}- if returns_none(fn):- d["none"] = True- return d+ return written(fn, {"id": name, "sig": sig(fn), "doc": doc(fn), "static": isinstance(f, (staticmethod, classmethod))})def struct(s):@@ -172,8 +179,7 @@ def member(name, obj, depth):m = {"id": n, "kind": kind, "doc": doc(a)}if kind == "method":m["sig"] = sig(getattr(a, "__func__", a))- if returns_none(getattr(a, "__func__", a)):- m["none"] = True+ written(getattr(a, "__func__", a), m)if isinstance(a, (staticmethod, classmethod)) or type(a).__name__ == "classmethod_descriptor":m["static"] = Trueif kind == "data":@@ -185,10 +191,7 @@ def member(name, obj, depth):bases = [b.__module__ + "." + b.__qualname__ for b in obj.__bases__ if b is not object]return {"id": name, "kind": "class", "doc": doc(obj), "sig": sig(obj), "bases": bases, "members": own}if callable(obj):- f = {"id": name, "kind": "function", "doc": doc(obj), "sig": sig(obj)}- if returns_none(obj):- f["none"] = True- return f+ return written(obj, {"id": name, "kind": "function", "doc": doc(obj), "sig": sig(obj)})return {"id": name, "kind": "data", "type": type(obj).__name__, "value": value(obj), "doc": ""}@@ -220,7 +223,7 @@ def app():continued = doc(getattr(cls, name, None)) if hasattr(cls, name) else ""if callable(v):- out.append({"id": name, "kind": "function", "doc": doc(v), "sig": sig(v)})+ out.append(written(v, {"id": name, "kind": "function", "doc": doc(v), "sig": sig(v)}))else:out.append({"id": name, "kind": "data", "type": type(v).__name__, "value": value(v), "doc": d})return outdiff --git a/sdk/blender/tools/gen/cret.ts b/sdk/blender/tools/gen/cret.tsnew file mode 100644index 00000000..510c2558--- /dev/null+++ b/sdk/blender/tools/gen/cret.ts@@ -0,0 +1,94 @@+// BL22: what Blender's C methods and properties return where their docstrings don't say (bmesh, gpu, aud, mathutils'+// submodules, idprop, imbuf, bpy's own): read from the bindings' C source, since Python can't read a C function's+// source. Each is given as the Python type its every return gives: None (Py_RETURN_NONE), bool (Py_RETURN_TRUE,+// PyBool_FromLong), int (PyLong_From*), float (PyFloat_FromDouble), str (PyUnicode_From*), or what a Py_BuildValue+// format makes ("f", "(fff)": tuple[float, float, float]); an error's nullptr gives nothing back, and any other+// return leaves it unknown. Methods are bound by name in PyMethodDef tables, properties in PyGetSetDef tables; a name+// is given for a family of bindings only when every C function bound to it there agrees. Writes tools/cret.json, which+// gen/main.ts reads.+// bun tools/gen/cret.ts SRC_ROOT VERSION OUT.json (SRC_ROOT: a Blender checkout; tools/cret.sh fetches one and runs this)+import { readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";+import { join } from "node:path";++const [root, version, out] = process.argv.slice(2);+if (!root || !version || !out) throw new Error("usage: bun tools/gen/cret.ts SRC_ROOT VERSION OUT.json");++// each family's sources (gen/main.ts maps a Python module to one by its first name)+const FAMILIES: Record<string, string> = {+ bmesh: "source/blender/python/bmesh",+ gpu: "source/blender/python/gpu",+ mathutils: "source/blender/python/mathutils",+ generic: "source/blender/python/generic",+ bpy: "source/blender/python/intern",+ aud: "extern/audaspace/bindings/python",+};++const strip = (s: string) => s.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");+const sources = (dir: string): string[] =>+ readdirSync(dir).flatMap((f) => {+ const p = join(dir, f);+ if (statSync(p).isDirectory()) return sources(p);+ return /\.(cc|cpp|c)$/.test(f) ? [strip(readFileSync(p, "utf8"))] : [];+ });++const UNKNOWN = "?";+// a Py_BuildValue format's one value: f/d a float, the integer codes an int, s/U a str+const FORMAT: Record<string, string> = { f: "float", d: "float", i: "int", b: "int", h: "int", l: "int", n: "int", I: "int", k: "int", K: "int", L: "int", H: "int", B: "int", s: "str", U: "str" };+function built(format: string): string {+ const f = format.replace(/\s/g, "");+ const tuple = /^\((\w+)\)$/.exec(f);+ if (tuple) {+ const items = [...tuple[1]].map((c) => FORMAT[c] ?? UNKNOWN);+ return items.includes(UNKNOWN) ? UNKNOWN : `tuple[${items.join(", ")}]`;+ }+ return f.length === 1 ? (FORMAT[f] ?? UNKNOWN) : UNKNOWN;+}+// what one `return` gives: a Python type, "" for an error's nullptr, or UNKNOWN+function value(v: string): string {+ if (/^(Py_None|Py_NewRef\(Py_None\))$/.test(v)) return "None";+ if (/^(PyBool_From(Long|Bool)\(|Py_(True|False)$|Py_NewRef\(Py_(True|False)\)$)/.test(v)) return "bool";+ if (/^PyFloat_FromDouble\(/.test(v)) return "float";+ if (/^PyLong_From\w+\(/.test(v)) return "int";+ if (/^PyUnicode_From(String|Format)\(/.test(v)) return "str";+ const b = /^Py_BuildValue\(\s*"([^"]*)"/.exec(v);+ if (b) return built(b[1]);+ return /^(nullptr|NULL|0)?$/.test(v) ? "" : UNKNOWN;+}+// a C function's body: the one type all its returns give+const BODY = /^(?:static\s+)?PyObject\s*\*\s*(\w+)\s*\([^)]*\)\s*\{([\s\S]*?)^\}/gm;+const RET = /\bPy_RETURN_(NONE|TRUE|FALSE)\b|\breturn\b([^;]*);/g;+function kindOf(body: string): string {+ const kinds = new Set<string>();+ for (const m of body.matchAll(RET)) {+ const k = m[1] ? (m[1] === "NONE" ? "None" : "bool") : value((m[2] ?? "").trim());+ if (k) kinds.add(k);+ }+ return kinds.size === 1 ? [...kinds][0] : UNKNOWN;+}+// a method or property entry, in a table or a definition of its own: the Python name, the C function (the getter),+// however it's cast, and the rest, where a method has its METH_ flags; any other entry is taken as a property's+// (a name some other kind of table also has only disagrees, and is left unknown)+const ENTRY = /\{\s*(?:\(char\s*\*\)\s*)?"(\w+)"\s*,\s*(?:\w+_cast<[^>]+>\(\s*(\w+)\s*\)|\(\s*\w+\s*\)\s*(?:\(\s*void\s*\*\s*\)\s*)?(\w+)|(\w+))([^}]*)\}/g;++type Family = { methods: Record<string, string>; getters: Record<string, string> };+const result: Record<string, Family> = {};+for (const [family, dir] of Object.entries(FAMILIES)) {+ const files = sources(join(root, dir));+ const kinds = new Map<string, string>();+ for (const src of files) for (const m of src.matchAll(BODY)) kinds.set(m[1], kindOf(m[2]));+ const methods = new Map<string, Set<string>>();+ const getters = new Map<string, Set<string>>();+ for (const src of files) {+ for (const m of src.matchAll(ENTRY)) {+ const byName = /\bMETH_/.test(m[5]) ? methods : getters;+ const k = kinds.get(m[2] ?? m[3] ?? m[4]) ?? UNKNOWN; // a C function we can't read: unknown+ byName.set(m[1], (byName.get(m[1]) ?? new Set()).add(k));+ }+ }+ const agreed = (byName: Map<string, Set<string>>) =>+ Object.fromEntries([...byName].filter(([, ks]) => ks.size === 1 && !ks.has(UNKNOWN)).map(([n, ks]) => [n, [...ks][0]]).sort(([a], [b]) => (a < b ? -1 : 1)));+ result[family] = { methods: agreed(methods), getters: agreed(getters) };+}+writeFileSync(out, JSON.stringify({ blender: version, families: result }, null, 1) + "\n");+const count = (k: keyof Family) => Object.values(result).reduce((s, f) => s + Object.keys(f[k]).length, 0);+console.log(`cret: Blender ${version}: ${count("methods")} method names and ${count("getters")} property names typed -> ${out}`);diff --git a/sdk/blender/tools/gen/dump.ts b/sdk/blender/tools/gen/dump.tsindex d1114977..9c0e0188 100644--- a/sdk/blender/tools/gen/dump.ts+++ b/sdk/blender/tools/gen/dump.ts@@ -43,8 +43,12 @@ export interface PyMember {doc: string;sig?: string | null;static?: boolean;- /** written in Python and returns no value anywhere (dump.py returns_none): it gives None */+ /** written in Python (dump.py written): what it returns is read from its source, never from tools/cret.json */+ py?: boolean;+ /** gives None: written in Python and returns no value anywhere (dump.py returns_none), or C (tools/cret.json) */none?: boolean;+ /** the Python type its C source returns, a method's or a property's, where its docstring doesn't say (tools/cret.json) */+ ret?: string;ro?: boolean;type?: string;value?: string;@@ -61,8 +65,8 @@ export interface Struct {funcs: Func[];nested?: string;pyprops?: { id: string; doc: string; ro: boolean }[];- pyfuncs?: { id: string; sig: string | null; doc: string; static: boolean; none?: boolean }[];- cfuncs?: { id: string; doc: string }[];+ pyfuncs?: { id: string; sig: string | null; doc: string; static: boolean; py?: boolean; none?: boolean; ret?: string }[];+ cfuncs?: { id: string; doc: string; none?: boolean; ret?: string }[];}export interface Op {diff --git a/sdk/blender/tools/gen/main.ts b/sdk/blender/tools/gen/main.tsindex fcc333fc..f9621d48 100644--- a/sdk/blender/tools/gen/main.ts+++ b/sdk/blender/tools/gen/main.ts@@ -26,6 +26,30 @@ for (const s of d.structs) {for (const p of s.props) if (p.type === "enum" && atTheTime.has(`${s.id}.${p.id}`)) p.itemf = true;for (const f of s.funcs) for (const a of f.args) if (a.type === "enum" && atTheTime.has(`${s.id}.${f.id}(${a.id})`)) a.itemf = true;}+// BL22: what C methods and properties return where their docstrings don't say (tools/cret.json, read from the+// bindings' C source by tools/cret.sh), by family of bindings; one written in Python (`py`, or a Python property, which+// has `ro`) or with an :rtype: or :type: keeps its own+type Family = { methods: Record<string, string>; getters: Record<string, string> };+const cret = JSON.parse(readFileSync(join(dirname(new URL(import.meta.url).pathname), "../cret.json"), "utf8")) as { blender: string; families: Record<string, Family> };+if (cret.blender !== d.blender) console.warn(`gen: tools/cret.json is Blender ${cret.blender}'s, the dump ${d.blender}'s: run tools/cret.sh ${d.blender}`);+const FAMILY: Record<string, string> = { bmesh: "bmesh", gpu: "gpu", mathutils: "mathutils", aud: "aud", bpy: "bpy", idprop: "generic", imbuf: "generic", bl_math: "generic" };+type Member = { id: string; doc: string; kind?: string; py?: boolean; ro?: boolean; none?: boolean; ret?: string; members?: Member[] };+const has = (o: object, k: string) => Object.hasOwn(o, k);+const markC = (fam: Family | undefined, m: Member) => {+ if (!fam || m.py || m.none || /:rtype:/.test(m.doc) || !has(fam.methods, m.id)) return;+ if (fam.methods[m.id] === "None") m.none = true;+ else m.ret = fam.methods[m.id];+};+const markAll = (fam: Family | undefined, ms: Member[]) => {+ for (const m of ms) {+ if (m.kind === "function" || m.kind === "method") markC(fam, m);+ else if (m.kind === "property" && fam && m.ro === undefined && !/:type:/.test(m.doc) && has(fam.getters, m.id) && fam.getters[m.id] !== "None") m.ret = fam.getters[m.id];+ else if (m.kind === "class" || m.kind === "module") markAll(fam, m.members ?? []);+ }+};+for (const [mod, data] of Object.entries(d.modules)) markAll(cret.families[FAMILY[mod.split(".")[0]] ?? ""], data.members);+markAll(cret.families.bpy, [d.bpy_struct, ...d.app]);+for (const s of d.structs) for (const c of s.cfuncs ?? []) markC(cret.families.bpy, c);const root = join(dirname(new URL(import.meta.url).pathname), "../../src/gen");rmSync(root, { recursive: true, force: true });const files = new Map<string, string>();diff --git a/sdk/blender/tools/gen/pymod.ts b/sdk/blender/tools/gen/pymod.tsindex 3a12e5ce..a147fa80 100644--- a/sdk/blender/tools/gen/pymod.ts+++ b/sdk/blender/tools/gen/pymod.ts@@ -4,7 +4,7 @@import type { Dump, PyMember } from "./dump";import { jsdoc, key, modId, type Names } from "./names";import { pyType } from "./pytype";-import { direct, input, pyCallable } from "./rna";+import { direct, input, known, pyCallable } from "./rna";import { readDoc, readSig } from "./sig";const PYTYPE: Record<string, string> = { str: "string", int: "number", float: "number", bool: "boolean", tuple: "any[]", bytes: "Uint8Array", NoneType: "null", list: "any[]" };@@ -17,10 +17,12 @@ const isRo = (m: PyMember): boolean => m.ro === true || /read[- ]?only/i.test(m.function propertyMember(m: PyMember, n: Names, self: string, mod: string): string {const d = readDoc(m.doc);- const t = d.type ? pyType(d.type, { names: n, role: "out", self, module: mod }) : { ts: "any", kind: "any" as const };+ // no :type:: what its C getter returns (tools/cret.json), else any; a setter takes the same+ const type = d.type ?? m.ret;+ const t = type ? pyType(type, { names: n, role: "out", self, module: mod }) : { ts: "any", kind: "any" as const };const get = `${jsdoc(d.text)} get ${key(m.id)}(): ${direct(t)};`;if (isRo(m)) return get;- const inT = d.type ? input(pyType(d.type, { names: n, role: "in", self, module: mod })) : "any";+ const inT = type ? input(pyType(type, { names: n, role: "in", self, module: mod })) : "any";return `${get}\n set ${key(m.id)}(v: ${inT});`;}@@ -50,11 +52,11 @@ function emitClass(c: PyMember, mod: string, n: Names, classes: Set<string>): stcontinue;}if (m.id === "__call__") {- inst.push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", true, m.none));+ inst.push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", true, known(m)));continue;}if (m.kind === "property") inst.push(propertyMember(m, n, self, mod));- else if (m.kind === "method") (m.static ? stat : inst).push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", false, m.none));+ else if (m.kind === "method") (m.static ? stat : inst).push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", false, known(m)));else if (m.kind === "data") stat.push(dataMember(m));}const d = readDoc(c.doc);@@ -82,7 +84,7 @@ export function emitModule(mod: string, data: { doc: string; members: PyMember[]const api: string[] = [];const decls: string[] = [];for (const m of data.members) {- if (m.kind === "function") api.push(mod === "bmesh.ops" ? bmeshOp(m) : pyCallable(m.id, m.doc, m.sig, n, undefined, mod, " ", false, m.none));+ if (m.kind === "function") api.push(mod === "bmesh.ops" ? bmeshOp(m) : pyCallable(m.id, m.doc, m.sig, n, undefined, mod, " ", false, known(m)));else if (m.kind === "class") {api.push(`${jsdoc(readDoc(m.doc).text.split("\n")[0])} readonly ${key(m.id)}: ${m.id}Class;`);decls.push(emitClass(m, mod, n, classes));@@ -105,7 +107,7 @@ export function emitBpyStruct(d: Dump, n: Names): string {for (const m of d.bpy_struct.members ?? []) {if (m.id.startsWith("__")) continue;if (m.kind === "property") body.push(propertyMember(m, n, "R.bpy_struct", "bpy.types"));- else if (m.kind === "method") body.push(pyCallable(m.id, m.doc, m.sig, n, "R.bpy_struct", "bpy.types", " ", false, m.none));+ else if (m.kind === "method") body.push(pyCallable(m.id, m.doc, m.sig, n, "R.bpy_struct", "bpy.types", " ", false, known(m)));}return `${jsdoc("What every Blender struct (bpy.types.bpy_struct) has.", "")}export interface bpy_struct {\n${body.join("\n")}\n}\n`;}@@ -115,11 +117,11 @@ export function emitApp(d: Dump, n: Names): string {const body: string[] = [];const subs: string[] = [];for (const m of d.app) {- if (m.kind === "function") body.push(pyCallable(m.id, m.doc, m.sig, n, undefined, "bpy.app"));+ if (m.kind === "function") body.push(pyCallable(m.id, m.doc, m.sig, n, undefined, "bpy.app", " ", false, known(m)));else if (m.kind === "module" || m.kind === "class") {const inner: string[] = [];for (const x of m.members ?? []) {- if (x.kind === "function" || x.kind === "method") inner.push(pyCallable(x.id, x.doc, x.sig, n, undefined, `bpy.app.${m.id}`));+ if (x.kind === "function" || x.kind === "method") inner.push(pyCallable(x.id, x.doc, x.sig, n, undefined, `bpy.app.${m.id}`, " ", false, known(x)));else inner.push(`${jsdoc(x.doc)} readonly ${key(x.id)}: any;`);}const name = `App_${m.id}`;diff --git a/sdk/blender/tools/gen/rna.ts b/sdk/blender/tools/gen/rna.tsindex d6474181..2c9c360f 100644--- a/sdk/blender/tools/gen/rna.ts+++ b/sdk/blender/tools/gen/rna.ts@@ -131,15 +131,20 @@ function pyMembers(s: Struct, n: Names, skip: Set<string>): string[] {const get = `${jsdoc(d.text)} get ${key(p.id)}(): ${direct(t)};`;out.push(p.ro ? get : `${get}\n set ${key(p.id)}(v: ${d.type ? input(pyType(d.type, { names: n, role: "in", self })) : "any"});`);}- for (const f of [...(s.pyfuncs ?? []), ...(s.cfuncs ?? []).map((c) => ({ ...c, sig: null, static: false, none: false }))]) {+ for (const f of [...(s.pyfuncs ?? []), ...(s.cfuncs ?? []).map((c) => ({ ...c, sig: null, static: false }))]) {if (skip.has(f.id)) continue;- out.push(pyCallable(f.id, f.doc, f.sig, n, self, undefined, " ", false, f.none));+ out.push(pyCallable(f.id, f.doc, f.sig, n, self, undefined, " ", false, known(f)));}return out;}+/** What a function gives where its docstring doesn't say, read from its source: None (dump.py returns_none, or C), or+ * the Python type its C source returns (tools/cret.json). */+export type Known = string | undefined;+export const known = (m: { none?: boolean; ret?: string }): Known => (m.none ? "None" : m.ret);+/** A Python function or method's overloads, from its docstring (its `.. method::` line, :param:, :type:, :rtype:). */-export function pyCallable(name: string, doc: string, sig: string | null | undefined, n: Names, self?: string, module?: string, indent = " ", call = false, none = false): string {+export function pyCallable(name: string, doc: string, sig: string | null | undefined, n: Names, self?: string, module?: string, indent = " ", call = false, kr?: Known): string {const d = readDoc(doc);const s = d.sig ?? (sig ? sig : null);const where = (role: "in" | "out") => ({ names: n, role, self, module });@@ -150,8 +155,8 @@ export function pyCallable(name: string, doc: string, sig: string | null | undefreturn { name: p.name, ty, opt: p.def !== undefined, mode: p.mode, rest: p.rest, doc: info?.doc };}): [{ name: "args", ty: "any", opt: true, mode: "pos", rest: "args" }, { name: "kwargs", ty: "any", opt: true, mode: "kw", rest: "kwargs" }];- // no :rtype:, and Python source that returns no value anywhere (none): None, as Python gives- const ret = d.rtype ? direct(pyType(d.rtype, where("out"))) : none ? "H.Ref<void>" : "any";+ // no :rtype:: what its source shows, if it shows (Python's by dump.py returns_none, C's by tools/cret.json), else any+ const ret = d.rtype ? direct(pyType(d.rtype, where("out"))) : kr === "None" ? "H.Ref<void>" : kr ? direct(pyType(kr, where("out"))) : "any";const text = [d.text, d.returns ? `@returns ${d.returns}` : ""].filter(Boolean).join("\n");return overloads(name, ps, ret, text, indent, call);}