Commit Graph

12934 Commits

Author SHA1 Message Date
Matt Ebb
de52934331 * Added different icon types to the outliner 'datablocks' view
Brecht, please let me know if I haven't done the right thing with the RNA stuff - I thought it was easier to ask for forgiveness than approval in this case :)

* Added a cute 'RNA' icon
2008-12-31 03:05:08 +00:00
Nicholas Bishop
c6f15859ae Added some missing directory includes for CMake. Still some linker errors to resolve. 2008-12-31 00:53:01 +00:00
Brecht Van Lommel
22f05adc3a RNA
* The RNA viewer is now more integrated with the outliner, as
  a "Datablocks" view, with a tree structure.
* Still some issues to be solved with persistence, and also
  memory usage is problematic when expanding a million vertices
  in a mesh for example, though it will not build closed parts
  of the tree.
2008-12-30 21:28:27 +00:00
Brecht Van Lommel
445208d9d1 2.5: tweak scons linking priority for editmesh. 2008-12-30 21:25:56 +00:00
Ton Roosendaal
47796b75ff 2.5
Undo editmode and global undo code back. 
It's now called ED_undo_push() btw, but don't worry, for operators
this is going to be a simple operator flag, so you can remove the
old calls from all tools (but keep them when you directly change
data outide modifiers).

Will put undo back functional tomorrow
2008-12-30 19:01:12 +00:00
Ton Roosendaal
1402534ebc 2.5
EditMesh: further cleanup, made derivedmesh itterator functions
work by gathering all related data in local ViewContext struct.
(scene, editmesh, region, view3d, obedit).
Also removed bad inclusion of view3d_intern.h in mesh module.
2008-12-30 16:03:29 +00:00
Nathan Letwory
3fd28ca440 2.5
* remove a stray ;
  - it would be an empty statement, which is a proper statement, but not so nice when doing still declarations :) MSVC will complain.
2008-12-30 13:46:20 +00:00
Ton Roosendaal
25fac7b001 2.5
Editmesh code cleaned and compiling/linking. A whopping
20k lines back! :)
Not that it does stuff... editmode in/out has to be done,
and loads of operators. Also linking/exporting editmesh
calls has to be reviewed.

Also: added a blender_test_break() mechanism in BKE.
2008-12-30 13:16:14 +00:00
Michael Fox
446492c266 2.5
******
- ported Make track , and Clear track (ctrl-t, Alt-t)
	- make track is a direct port does not use context data loops
	- make Track crashes as Constraints have not been ported yet

- added select_extend to mouse select so now you can use shift again
	- Still does not use Context data loops as this get all messed up, kaito can you look into it 
	- currently only works with 1 modifier key at a time so ctrl+alt does not work, until i can figure out how best to achieve this
2008-12-30 10:37:52 +00:00
Joshua Leung
15518e20c0 2.5 - Action Editor stuff
* Added old theme-set version patch for new Dopesheet channel colours
* Removed warnings in action_edit_keyframes.c. I need an example of how to add error reports for the code that this concerned.
2008-12-30 10:10:44 +00:00
Brecht Van Lommel
d6e8cd4232 2.5: fix compile error on mac, and a few warnings. 2008-12-30 07:32:14 +00:00
Michael Fox
090807066c 2.5
*******

Small commit, moved selection Operators to Object editor (object_edit.c) as per kaito's request

- normal selection and border/circle select are still in view3d as they depend too much on view3d
2008-12-30 03:38:18 +00:00
Joshua Leung
81d788471f 2.5 - Bugfix for old Outliner/Oops views
Old oops views were not being converted to Outliner views), so the View menu was empty.
2008-12-30 03:28:01 +00:00
Nathan Letwory
11e50fb581 2.5
* make bpy compile with msvc again. The forward declaration of the array with no length was a problem. Instead, I switched the tables and made the function a forward declaration.
2008-12-30 00:35:31 +00:00
Joshua Leung
2629095828 2.5 - Transform Code for Animation Editors (Part 1)
Remove context pointer from transform code. Solved the need for this by modifying the code that needed it.
2008-12-30 00:28:11 +00:00
Nathan Letwory
e114c195a6 * remove unused var 2008-12-29 23:42:39 +00:00
Martin Poirier
34b53def70 2.5
Transform house cleaning. Gattering input methods in specialized code. It's not missing much before it can be used standalone (for example, to use the mouse to specify remove doubles threshold interactively).

Note to Aligorith: Transformations using INPUT_NONE (most Time* stuff) would use a cleanup.
2008-12-29 20:37:54 +00:00
Willian Padovani Germano
ec29a844f9 == RNA ==
Ongoing work in rna_ipo.c: wrapping BPoint and BezTriple, since they are used in IpoCurve.

These are declared in DNA_curve_types.h, so rna_curve.c is a better place for them. I prefer to test things better and have someone who knows well this data check the wrapping first, though.
2008-12-29 18:38:29 +00:00
Brecht Van Lommel
e51827246d RNA
* DNA_object_fluidsim.h: done, patch by Nathaniel Garbutt, thanks!
  Some changes to make it more complete and adding inheritance to
  better hide irrelevant and reused properties.
* Also added all derived types for modifiers, but only fluid is
  filled in currently.
* Some files converted from DOS to UNIX line endings.
2008-12-29 17:36:06 +00:00
Brecht Van Lommel
1f1f79955a 2.5: fix a crash with invalid data left in context after file read,
now it clears screen/area/region/uiblock.
2008-12-29 13:48:03 +00:00
Brecht Van Lommel
0a8a00cd10 2.5: Error reporting
* Added a report list to operator, to which they can report errors and
  warnings. When the operator ends, it will display them with a popup. For
  python these should become exceptions when calling operators.
* Added a function to make a popup menu from a report list.
* Also added a utility function to prepend a string before the reports to
  indicate what they relates to. Also made the report functions used
  BLI_dynstr to simplify the code.
* Made file reading and writing report errors to the user again using this
  system, also replacing the left over uncommented bad level error() calls.
2008-12-29 13:38:08 +00:00
Willian Padovani Germano
d51bc24384 The 'struct' keyword was missing, breaking compilation here (scons). 2008-12-29 13:02:18 +00:00
Ton Roosendaal
1580b6bc17 2.5
More notifier cleanups: 

NC_SCENE|ND_OB_SELECT : scene level object selections changed
NC_SCENE|ND_OB_ACTIVE : scene level, new active object

NC_OBJECT|ND_BONE_SELECT : object level, bone selection changed
NC_OBJECT|ND_BONE_ACTIVE: object level, new active bone

I've made view3d listen to these, so operators that change
selections don't have to tag own region for redraw anymore.

Also enabled selecting/activating in outliner again.

BTW: Added it in space_action, but Joshua has to code the
proper refresh still :)
2008-12-29 12:15:42 +00:00
Campbell Barton
3e29ff7204 * was using __members__ to get a list of attributes, has been deprecated in python for a while now. use a "__dir__" method instead. now dir() works for rna and operator types.
* added array support for bpyoperator doc generation
2008-12-29 12:04:25 +00:00
Joshua Leung
2c4c7004ae 2.5 - Action Editor: Copy/Paste
This can be activated using Ctrl-C/V and the buttons on the header.

It still uses an ugly global copy/paste buffer for now. In future, we could investigate alternative methods...
2008-12-29 11:04:55 +00:00
Ton Roosendaal
1d42afe561 2.5
Made Makefiles happy with new transform library.
2008-12-29 09:24:42 +00:00
Joshua Leung
a91e79ba70 2.5 - Action Editor Transforms now work again
Note: there were some crashes that would occur if context was not reset everytime the modal callback was run. Probably there's something about the context info we need to be more careful about.
2008-12-29 07:19:16 +00:00
Joshua Leung
d249110213 2.5 Transform - Resolving more warnings, etc 2008-12-29 06:22:45 +00:00
Joshua Leung
fc243ed361 2.5 Transform Code - Preparing for Action Editor Support
* Fixed up most of the relevant Fixme's for Action Editor and/or some animation stuff

* Added keymap for action editor transforms to transform keymap.

* Added context pointer to TransInfo struct. This was needed to avoid passing context to everything. As such, renamed the old 'context' setting to options.
2008-12-29 06:06:59 +00:00
Martin Poirier
c3ccc8a5ac 2.5
Widden some #if 0 to completely remove harmful code.
2008-12-29 04:23:41 +00:00
Martin Poirier
6f8cc8a8ad Forgot this new file in last commit 2008-12-29 04:14:27 +00:00
Campbell Barton
65fbab9f4d added RNA access to operators pointers to be documented with epy_doc_gen.py.
eg: print (bpyoperator.VIEW3D_OT_viewnumpad.rna.__members__)

docs for bpyoperator
http://www.graphicall.org/ftp/ideasman42/html/bpyoperator-module.html
2008-12-29 03:24:13 +00:00
Martin Poirier
b6b61681ef 2.5
Transform:
First working port of the transform code:
- Object mode only (other conversions need to be ported)
- Contraints (global and local only) working
- Snap (no edit mode, obviously) working
- Numinput working
- Gears (Ctrl and Shift) working
- Only grap, rotate, scale, shear, warp and to sphere have been added as hotkey, but the rest should work too once accessible
- No manipulator
- No drawn feedback other than moving stuff and header print (no constraint line, snap circle, ...)
- No NDOF support

I've only tested Scons support, though Makefil *should* work, I *think*.

Misc:
-QuatIsNull function in arith
-Exporting project_* and view[line|ray] functions from view3d
2008-12-29 01:41:28 +00:00
Joshua Leung
97a82102d4 2.5 - Action Editor / Animation Stuff:
* Brought back clean (OKEY), sample (Shift-OKEY), and delete (XKEY/DELKEY) tools for the Action Editor. 
Currently clean uses a predefined threshold (as a rna-prop, though it's still lacking the popup to set this when it is called)

* Added new file for 'destructive' keyframe operations/tools. 

* Got keyframing.c compiling. Now, some of these tools need to be operatorised. Also, the API there might change when enough of the system is stable for RNA-IPO work to take place (so that it can be tested).
2008-12-29 01:19:25 +00:00
Nathan Letwory
87cae4caed 2.5 / Nodes
* enable more code (button callbacks, will probably undergo revision)
2008-12-29 00:55:23 +00:00
Michael Fox
aa1c405b7a 2.5
********
-ported the selection functions to use context data loops
-removed unused functions
-added select by layer (alt-numpad *), hardcoded to layer 2 until appropriate popup is available
- normal select is still the same, need to untangle it badly, and add extend to it for multiple selection, group selections, activations etc etc
2008-12-29 00:45:00 +00:00
Nathan Letwory
b8ab364bd5 2.5 / Nodes
* patch reading of old files so nodes open up properly.
2008-12-29 00:03:05 +00:00
Nathan Letwory
4b3a37db14 2.5 / Nodes
* header: better positioning of buttons, new drawing style was mixing up for old positions.
2008-12-28 23:49:51 +00:00
Matt Ebb
e8bf295ec9 More button code cleaning and tweaks
* now the rounded and round shaded themes use the same drawing backend
* fixed a problem with menu and number button triangles not accounting for buttons zoom
2008-12-28 23:14:37 +00:00
Joshua Leung
750bb40de3 2.5 Outliner - Mouse Clicks work again
A typo in the outliner_active poll() callback meant that the events were being skipped.
2008-12-28 22:26:02 +00:00
Nathan Letwory
2529d90985 2.5 / Nodes
* Operator to toggle node visibility (hide/unhide)
2008-12-28 21:41:33 +00:00
Nathan Letwory
2eaf79a53d 2.5 / Nodes
* shift-select operator, inheriting from normal select operator.
2008-12-28 20:49:37 +00:00
Ton Roosendaal
9b2dec9631 2.5
Recode of 'select all objects by type' to show
how to use itterators.
2008-12-28 18:10:24 +00:00
Andrea Weikert
7209837f2e 2.5
fix for win32 firing size event with undefined size.
2008-12-28 15:28:09 +00:00
Ton Roosendaal
149651b2f2 2.5
Quick bugfix: notifiers was reading NULL pointer after a file read.
2008-12-28 14:41:33 +00:00
Nathan Letwory
f7307c13e3 2.5 / Nodes
* tag region for redraw after select.
2008-12-28 13:24:44 +00:00
Campbell Barton
f9fd3d7139 minor changes and error checking.
tested first PyOperator, basics work now, invoke/exec can be used to make an operator that edits RNA or calls other operators.
2008-12-28 13:03:37 +00:00
Joshua Leung
1e463b22eb 2.5 - Action Editor:
* Added set-extrapolation operator. For now, this uses the Shift-E hotkey.
* Removed some unused code from keyframes_edit.c
2008-12-28 11:51:41 +00:00
Ton Roosendaal
f3fe2d0559 2.5
- New icons code crashed when using old (smaller) files, added a check
  and warning print for this case.
2008-12-28 11:28:44 +00:00
Joshua Leung
3b7d1afbd8 2.5 - Version patch for reading old .blend files (for some animsys2 changes) was being done for the wrong sub-version. 2008-12-28 11:08:56 +00:00