[Bf-committers] OOPS Parenting & Patch

Campbell Barton bf-committers@blender.org
Thu, 03 Jun 2004 23:32:59 +1000


This is a multi-part message in MIME format.
--------------010707040505090200030200
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi, Added a few lines so that its possible to parent objects in the OOPS 
Window.
One thing I also ded was to mabe the selected base active each time its 
clicked on (just like in the 3d view)
Its all very minimal but its nice to be able to make/clear parents in 
the OOPS view.

Id like to extend the oops view, oops is a cool idea but hasent got much 
functionality atm.
- cam




--------------010707040505090200030200
Content-Type: text/plain;
 name="parent_oops4.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="parent_oops4.txt"

? blender
? blender_back
? config.opts
? source/blender/python/api2_2x/doc/Armature.pyc
? source/blender/python/api2_2x/doc/BGL.pyc
? source/blender/python/api2_2x/doc/BPY_API_233
? source/blender/python/api2_2x/doc/Blender.pyc
? source/blender/python/api2_2x/doc/Bone.pyc
? source/blender/python/api2_2x/doc/Camera.pyc
? source/blender/python/api2_2x/doc/Curve.pyc
? source/blender/python/api2_2x/doc/Draw.pyc
? source/blender/python/api2_2x/doc/Effect.pyc
? source/blender/python/api2_2x/doc/Image.pyc
? source/blender/python/api2_2x/doc/Ipo.pyc
? source/blender/python/api2_2x/doc/Lamp.pyc
? source/blender/python/api2_2x/doc/Lattice.pyc
? source/blender/python/api2_2x/doc/Library.pyc
? source/blender/python/api2_2x/doc/Material.pyc
? source/blender/python/api2_2x/doc/Mathutils.pyc
? source/blender/python/api2_2x/doc/Metaball.pyc
? source/blender/python/api2_2x/doc/NLA.pyc
? source/blender/python/api2_2x/doc/NMesh.pyc
? source/blender/python/api2_2x/doc/Noise.pyc
? source/blender/python/api2_2x/doc/Object.pyc
? source/blender/python/api2_2x/doc/Registry.pyc
? source/blender/python/api2_2x/doc/Render.pyc
? source/blender/python/api2_2x/doc/Scene.pyc
? source/blender/python/api2_2x/doc/Sys.pyc
? source/blender/python/api2_2x/doc/Text.pyc
? source/blender/python/api2_2x/doc/Texture.pyc
? source/blender/python/api2_2x/doc/Types.pyc
? source/blender/python/api2_2x/doc/Window.pyc
? source/blender/python/api2_2x/doc/World.pyc
Index: source/blender/src/editoops.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editoops.c,v
retrieving revision 1.9
diff -u -r1.9 editoops.c
--- source/blender/src/editoops.c	19 Nov 2003 22:00:13 -0000	1.9
+++ source/blender/src/editoops.c	3 Jun 2004 13:19:10 -0000
@@ -110,7 +110,8 @@
 	base= FIRSTBASE;
 	while(base) {
 		if(base->flag != base->object->flag) {
-			base->flag= base->object->flag;
+      base->flag= base->object->flag;
+      set_active_base(base);
 		}
 		base= base->next;
 	}
Index: source/blender/src/space.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/space.c,v
retrieving revision 1.138
diff -u -r1.138 space.c
--- source/blender/src/space.c	21 May 2004 09:27:42 -0000	1.138
+++ source/blender/src/space.c	3 Jun 2004 13:19:18 -0000
@@ -3560,8 +3560,15 @@
 			transform_oops('s');
 		}
 		break;
+  case PKEY:
+		if((G.qual==LR_CTRLKEY)) {
+      make_parent();
+    } else if((G.qual==LR_ALTKEY)) {
+      clear_parent();
+		}
+		break;
 
-	case ONEKEY:
+  case ONEKEY:
 		do_layer_buttons(0); break;
 	case TWOKEY:
 		do_layer_buttons(1); break;

--------------010707040505090200030200--