Blender Git Loki

Git Commits -> Revision e90ad1d

Revision e90ad1d by Campbell Barton (master)
September 24, 2010, 03:48 (GMT)
Annoying hack to pretend that an operator and its properties are the same, when passing an operator to an rna function argument which accepts 'AnyType', then pass the properties instead.

This means we can do operator drawing without passing self.properties as an argument.

while this check if quite specific, if this gives problems later on we should probably change operators not to try to mix an operator and its properties, it looks nice to a scripter but internally is not easy to manage.

Commit Details:

Full Hash: e90ad1d9bafccadcc05cbcad5cc64d0c9940f6f9
SVN Revision: 32093
Parent Commit: f866de1
Lines Changed: +27, -8

4 Modified Paths:

/release/scripts/op/io_mesh_ply/__init__.py (+4, -4) (Diff)
/release/scripts/op/io_scene_obj/__init__.py (+0, -1) (Diff)
/release/scripts/op/object.py (+3, -3) (Diff)
/source/blender/python/intern/bpy_rna.c (+20, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021