A third way would be to add a poll() method to operators that, when
defined, registers a new dropzone type. Plus a bl_poll type to know
into which dropzone list to add it to.

Then would just need to have a generic wrapper function (per dropzone
region type) to call the py-function like; poll(cls, drug_ob,
target_ob) and another generic dropzone_copy() function that copied
the drug & target objects into op["object"] & op["target"] custom
props if poll() returns true...something like that, haven't quite
figured out all the details yet.

Wouldn't be too terribly hard to implement -- one of the main reasons
I've been poking around in the D&D code the last couple days is to
figure out how to get at this stuff from python.

Dan
_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to