Blender Version
Broken: 2.72 official
Short description of error
https://developer.blender.org/rB127330d6c added multi-drag with proportional scaling of values for e.g. Object.scale. A Python-defined property with options={'PROPORTIONAL'} does not scale proportionally however.
Exact steps for others to reproduce the error
Run the following code and try the vector prop in Object tab:
import bpy
class HelloWorldPanel(bpy.types.Panel):
"""Creates a Panel in the Object properties window"""
bl_label = "Hello World Panel"
bl_idname = "OBJECT_PT_hello"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "object"
def draw(self, context):
layout = self.layout
ob = context.object
col = layout.column(True)
col.prop(ob, "prop")
def register():
bpy.utils.register_class(HelloWorldPanel)
bpy.types.Object.prop = bpy.props.FloatVectorProperty(name="PROPORTIONAL", min=-10, max=10, subtype="XYZ", options={'PROPORTIONAL'})
def unregister():
bpy.utils.unregister_class(HelloWorldPanel)
del bpy.types.Object.prop
if __name__ == "__main__":
register()1.0
2.0
3.0
should become
2.0
4.0
6.0
but instead it will be
2.0
3.0
4.0
BTW: bla_rna.properties[...] does not seem to expose options