nutti / fake-bpy-module

Fake Blender Python API module collection for the code completion.
MIT License
1.37k stars 97 forks source link

Default value `sys.float_info.max` converted to `None` #284

Closed Road-hog123 closed 2 months ago

Road-hog123 commented 3 months ago

BVHTree.ray_cast's distance argument defaults to sys.float_info.max, but in the generated modules this has become None (which is not compatible with float).

Road-hog123 commented 2 months ago

bpy.utils.resource_path has a similar problem—major defaults to bpy.app.version[0] and minor to bpy.app.version[1], but in the generated modules these are None[0] and None[1] respectively (None is not subscriptable).

nutti commented 2 months ago

Duplicate of #267. Solved by fixing it.