Commit Graph

15502 Commits

Author SHA1 Message Date
Joshua Leung a017982074 Animato - Basic version patching support
This is work-in-progress patching support for converting animation saved in old system to work in the new one. 

* Only IPOs/Actions directly attached to Objects + Shapekeys are converted for now. More types will follow...
* This is currently done as a step outside of do_versions() due to problems with various pointers not having been resolved yet, but which are necessary for correct resolution of issues such as drivers... However, the current code does illustrate how the data should be converted to give best results/compat between the two systems.
* Still need to get the converted data working with depsgraph correctly. Currently, some of my testfiles work, but the BBB files still don't.
2009-01-22 10:53:22 +00:00
Nicholas Bishop 3cdac8e9f7 * Fixed some crashiness with sculpt file loading
* Added undo push for toggling sculpt mode
* Little optimization for brush texture, was generating quite large textures unecessarily
2009-01-22 04:22:26 +00:00
Nicholas Bishop d95ad1a445 Undo in sculpt mode works now. Also removed some unused old code in sculpt.c 2009-01-22 01:58:38 +00:00
Nicholas Bishop faa871117f Brought back sculpt smooth brush. Also added a new brush flag for setting whether to use brush spacing. 2009-01-21 22:40:28 +00:00
Nicholas Bishop e609d0cb25 Brought back rake mode for sculpt (turns the brush texture with the direction of the brush stroke.) 2009-01-21 21:17:32 +00:00
Nicholas Bishop bf72c26c57 Brought back textures for sculpt mode. These are stored in Brush DNA now, as well as the three texture modes (drag/tile/3D). 2009-01-21 20:03:41 +00:00
Andrea Weikert 446ed90fd6 2.5 filebrowser
cleaned up selection code
new operators: 
- highlight file under cursor
- select all/nothing (AKEY)
- border select (BKEY)
changed selection to be invoked by LEFTMOUSE
2009-01-21 19:28:28 +00:00
Andrea Weikert cf9d0cf2e8 2.5 MSVC9 projectfiles
updates: 
* windowmanager/wm_draw.c
2009-01-21 19:11:20 +00:00
Campbell Barton b9682a7ec8 sequencer operators duplicate, delete, separate images. 2009-01-21 18:47:09 +00:00
Nicholas Bishop b4bef32bd9 * Fixed a minor CMake error for WITH_YAFRAY option
* Removed two unused sculpt DNA fields
* Restored brush spacing option to sculpt
2009-01-21 18:44:36 +00:00
Campbell Barton e017235adc sequencer header buttons, not linked up to anything yet. 2009-01-21 12:39:56 +00:00
Campbell Barton 88e244ebb9 basic transform for sequencer strips
can transform the strips or move their handles
Still todo, click-drag transform, metastrips support, snapping, markers overlap checks and constrain to valid channels.
2009-01-21 07:01:20 +00:00
Joshua Leung 09357a91ce Animato - Quick bugfix
Added missing 'break;' 's skipped during the sprint towards the "first working prototype" stage. The temporary Insert Keyframe operator should now work correctly for rotation/scaling keys now by not adding extra keys.
2009-01-21 06:14:37 +00:00
Michael Fox 4cb1302ee2 2.5
*******

just a small commit, addeed a few more error, warning reports
2009-01-21 02:24:12 +00:00
Brecht Van Lommel 8d4a9081cc 2.5: WIP commit for WM compositing.
* Drawing code from wm_event_system.c split into separate wm_draw.c file.

Now there's 3 different draw methods implemented, not sure what survives
or will be added but is useful for debugging.

* Draw All: redraws everything each time, for reference.
* Draw Overlap All: what the code did before this commit, only draw
  regions marked for redraw, and anything that overlaps them.
* Triple Buffer: copies/retores all area regions into a texture, and
  blits that before drawing. Menus, brushes, gestures, etc are redrawn
  always on top of that.

Currently "Draw Overlap All" is set hardcoded to be used still. Triple
Buffer code is not complete, it doesn't handle window resize yet. Cards
that don't support non power of two textures can need quite large
textures as well, this could be split into multiple smaller ones.
2009-01-20 21:55:48 +00:00
Martin Poirier 5ddc9ed1da 2.5
cleanup image window apsect ratio correction mess (still disabled, this just cleans fonction call locations and name)
2009-01-20 20:44:36 +00:00
Martin Poirier 228c0c760f 2.5
EditMesh snap still had stubs instead of proper editmesh calls
Misc correction for 2D edit with NDOF (not testable without ndof support)
2009-01-20 19:58:05 +00:00
Martin Poirier d9a0a477a4 2.5
Redraw at the end of transform even if not cancelled, to make sure all special transform draw doesn't stay on screen.
2009-01-20 19:18:22 +00:00
Ton Roosendaal e5cf8cf052 2.5
Two bugfixes:
- area-full (ctrl+up) crashed on area-edge
- view3d view-icon and axes color wrong.
2009-01-20 19:03:26 +00:00
Andrea Weikert e673edd388 2.5 MSVC9 projectfiles
updates: 
* several new files added to editors/space_sequencer
* several new files added to editors/preview
2009-01-20 19:00:00 +00:00
Ton Roosendaal bd9e896e96 2.5
View3D four-split: added box-clip for the three ortho
windows. Is all on by default, waiting for headers and
buttons to come back.

Also: hotkey for foursplit now also removes it (toggle)

Also: window_to_3d() function only did delta's, 
renamed it to window_to_3d_delta  and coded a 
real window_to_3d()
2009-01-20 18:31:11 +00:00
Ton Roosendaal 81763d8cf0 2.5
Couldn't leave to finish this; four-split 3d view now
syncs the ortho views to a box-view. Brings back good
old Amiga Sculpt4D feeling! :) What's not done is to
use the box to clip away invisible stuff.

Note that it still allows to switch top-bottom, 
left-right or front-back. The 4th window is entirely
free.

Test: use shift+alt+ctrl+S. In due time will all go
the headermenu, configurable, of course.
2009-01-20 14:23:32 +00:00
Campbell Barton b8df9948ab WIP, operators SEQUENCER_OT_add_color_strip and SEQUENCER_OT_add_scene_strip
but no menu to access them yet, for now can access them with R and Tkey
2009-01-20 14:19:39 +00:00
Campbell Barton f03cf5122b needed this include path to build 2009-01-20 12:20:01 +00:00
Joshua Leung 822203e4cf Animato - More work on Action Editor
* Added back Auto Preview-Range tool (i.e. set preview-range from keyframe extents)

* Restored delete keyframe tool. For now, this doesn't delete empty F-Curves, even though its keyframe-api counterpart still does. I still need to figure out how to do this in the best way.

* Fixed crashes when selecting keyframes in 'object' summary channels

* Removed prototypes for a few unused/depreceated functions...
2009-01-20 11:56:45 +00:00
Campbell Barton b5904f10a8 missing comma 2009-01-20 11:54:00 +00:00
Ton Roosendaal e20e4a7afd 2.5
- Previewrender code back, commented out a lot of bad cruft,
  nothing works or is linked even!
- Added NC_GROUP notifier type, used in editgroup.c and 
  listened to in 3dview and outliner
2009-01-20 11:09:26 +00:00
Joshua Leung 8c479bc933 Animato - Restoring most of Action Editor
* Streamlined the filtering code to remove a few redundant options, which required tweaking the code for most tools 

* F-Curves are simply displayed using their full paths right now. This should eventually be the UI-string stored in RNA, but right now there are still a few missing things.

* There are a few tools which are not available yet which were available in 2.5 before Animato was added:
- Copy/Paste
- Rearrange channels

Also, the DopeSheet is not totally functional (in terms of displaying animation data for sub-object data yet). That will be added tomorrow.

* Added 'Action Group' pointer to F-Curves, as it will be handy for allowing Bone channels to still remain grouped as they were before with the Action Channels. However, reintroducing such a structure to the data-storage is not anticipated...
2009-01-20 11:07:42 +00:00
Michael Fox 42c8b6a684 2.5
******
small commit, just a few error reports
2009-01-20 11:03:53 +00:00
Michael Fox 5cf8612d4b 2.5
*****
- made Group operators more atomic, no menus, able to build on top of each other
	- add/remove selected from group will be done later
	- new notifier is needed, ton will code
	- Group Create adds the object to the new group, and a string can be passed to it toi make a custum named group from Py, etc
	-keymaps remains the same (ctrl-g, create group - alt-ctrl-g, remove object from all groups)

- Added 2 more operators , GROUP_OT_objects_remove_active (alt-shift-g) , GROUP_OT_objects_add_active (ctrl-shift-g)
	- adds/removes object from groups that are attached to the active object
2009-01-20 10:50:36 +00:00
Roland Hess 2fd331475f Wrapped constraint dna. There are a couple of things left to look at, all noted, but 99.5% of constraint uses are taken care of. 2009-01-20 03:55:30 +00:00
Michael Fox 989a7e5b20 2.5
******
- Ported , add selected to group (Ctrl-G), remove selected from group(Alt-Ctrl-G)
	- add selected now has a add new entry which will put the object into a new group
	- remove selected now has an ALL option which removes the object from all groups
	- remove code is currently very messy, this will have to do until a better solution arrises, menus return strings instead of numbers perhaps

- add/remove to/from group of active object still need to be done
2009-01-20 03:41:23 +00:00
Campbell Barton 999d9d146e Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
Ton Roosendaal c3434c8d61 2.5
Bugfix for previous View3D split commit: on file read, the area-
spacetypes are not set yet, needs BKE_spacetype_from_id() there.
2009-01-19 18:50:35 +00:00
Shaul Kedem 33ab2636df subdivides are now grouped in a menu - WKEY 2009-01-19 18:36:54 +00:00
Ton Roosendaal 1c590a4d06 2.5
Quick bugfix; transform calls initTransformOrientation for all
spacetypes, it now returns except for view3d.
(Crash in grabbing nodes)
2009-01-19 17:28:53 +00:00
Ton Roosendaal bc63213844 2.5
View3D has been split now in a local part (RegionView3D) and a
per-area part (old View3D). Currently local is:

- view transform
- camera zoom/offset
- gpencil (todo)
- custom clipping planes

Rest is in Area still, like active camera, draw type, layers,
localview, custom centers, around-settings, transform widget,
gridlines, and so on (mostly stuff as available in header).

To see it work; also added new feature for region split, 
press SHIFT+ALT+CTRL+S for four-split. 
The idea is to make a preset 4-split, configured to stick
to top/right/front views for three views.
Another cool idea to explore is to then box-clip all drawing
based on these 3 views.

Note about the code:
- currently view3d still stores some depricated settings, to
  convert from older files. Not all settings are copied over
  though, like custom clip planes or the 'lock view to object'.
- since some view3d ops are now on area level, the operators
  for it should keep track of that.

Bugfix in transform: quat initialize in operator-invoke missed
one zero.

Als brought back GE to compile for missing Ipos and channels.
2009-01-19 16:54:41 +00:00
Shaul Kedem 9b049d89a1 set min/max for added prims according to 2.48 2009-01-19 16:46:41 +00:00
Shaul Kedem 753029f3d1 adding vpaint to Cmakelist 2009-01-19 16:14:02 +00:00
Joshua Leung 89b7dfb5fb 2.5 - More work on getting file read/write support for Animato running
* Reorganised all animation-related file-writing code to be in the same area in the code, and clearly marked which parts of code are only used to ensure we can load old files to version-patch.

* Added file reading code for new datatypes, so it is possible to load the quit.blend file saved from the previous session. Version patching to work with the new system has yet to be done...

* Assorted whitespace fixes in places I skimmed through...
2009-01-19 02:26:46 +00:00
Martin Poirier 6d85a0feba 2.5
Transform orientations (Alt-Space and in header)

enum for transform operator parameter.
2009-01-18 21:36:38 +00:00
Andrea Weikert 54a0f4167b 2.5 filebrowser
fix typo in #include
2009-01-18 19:12:13 +00:00
Andrea Weikert 40aa25a9f0 2.5 filebrowser
fixed missing return statement
2009-01-18 18:35:24 +00:00
Andrea Weikert 2c5bf52214 2.5 filebrowser
* slightly improved drawing code
* temporarily added creation of thumbnails within thread in the background until thread job manager is available in WM.
* fixed missing icons in thumbnail view
2009-01-18 18:24:11 +00:00
Andrea Weikert 332517957d 2.5 MSVC9 projectfiles
updates: 
* RNA: rna_space.c and rna_vpaint.c
* DNA: DNA_anim_types.c
* blenkernel: anim_sys.c, fcurve.c
* editors: space_image several files added
* editors: uvedit several files added
* editors: gpencil: several files added
2009-01-18 15:37:09 +00:00
Michael Fox d862db2e4f 2.5
*******
added RNA for the Vpaint settings
2009-01-18 11:05:56 +00:00
Campbell Barton 97692a3bf5 Changes to functions from blender/windowmanager/intern/wm_event_system.c
Python operator api was using WM_operator_name_call() which was confusing things too much.
Added WM_operator_call_py() which ended up being a very small function and split out operator creation into wm_operator_create()

Python operator now runs the poll() function and raises an error if it fails.

Eventually there should be error messages for poll that python can use to give the exact reason for failing (eg - library linked data, no active object...)
2009-01-18 10:46:26 +00:00
Joshua Leung 53ae509cc5 2.5 - AnimSys Data management stuff...
* Removed nAction struct. We'll be using good ol' bAction structs again, but putting new data in a different list. Apart from that, the data is similar enough to do so.

* Rearranged code in DNA_action_types.h while renaming the structs to avoid confusion over what is currently in use...

* Added freeing and AnimData execution loops for many other ID-types too. (NOTE: I've added AnimData in NodeTree struct too, but it's not clear to me where the relevant data-management calls should go in Nodes code).

* File writing code should now only write the new data to files
2009-01-18 10:41:45 +00:00
Campbell Barton 711d04a499 Made modal operators print their operator string after executing
(when in debug "-d" mode only)

copy & paste duplicate and transform operations can now be copied from user input and pasted into ./test.py and run with the Pkey (fixed some minor bugs preventing this)

Would be nice if the "mode" setting used a proper RNA Enum rather then an int. 

# example, duplicate and transform
bpyoperator.OBJECT_OT_add_duplicate(mode=1)
bpyoperator.TFM_OT_transform(mode=1, options=0, values=(-1.23989, 0.570745, 0, 0), constraint_orientation=0, constraint_mode=0, constraint_matrix=(0, 0, 0, 0, 0, 0, 0, 0, 0))
2009-01-18 07:35:44 +00:00
Michael Fox abfc78afaf 2.5
******
-ported some of the Object mode select menu to use uiDefMenuButO
	- select random/layer still uses the hard coded value as no sutible popup exists
	- select by type suffers from random crashes, somthing to do with Context
	- need some way of doing sub menu's using the operator's invoke
	- the old menu is just #if'ed out
	- and did a little hous cleaning aswel

- added some undo pushes to the select operators
2009-01-18 01:26:20 +00:00