Commit Graph

15199 Commits

Author SHA1 Message Date
83e9144ff0 2.5
Background picture used bad scissor/viewport code, causing bad drawing
on tool region.
2009-09-01 17:10:56 +00:00
6d5f824518 - enum for convex hull and triangle mesh were swapped
- python pedantry
2009-09-01 16:37:23 +00:00
9965e8915d Added the old Edge settings to scene properties. This old feature is really quite terrible as it isn't even resolution independent - the edge width should be relative to the image dimensions.
Adjusted layout for sound in sequencer and a few other minor tweaks.
2009-09-01 12:41:06 +00:00
a44b948260 2.5 - Rotation Orders for Bones [Durian Rigging Request]
This commit is the start of an implementation of (euler) rotation orders for Bones (later to be extended to Objects too). 

Technical details and references can be found at:
http://wiki.blender.org/index.php/User:Aligorith/EulerRotationOrder

In short, I've added a new set of Euler conversion functions (EulO... and ...EulO), coexisting with the old functions for now, which can handle different rotation orders.

Changes have only been made to the basic evaluation code. However, the following places will still need modifications:
* Transform code - needs to be made to use functions which take rotation order into account instead of using XYZ only
* Rotation constraints - same story
* Other rotation editing tools for armatures also need a check up, since there might have been some missing code when I ported eulers earlier
2009-09-01 12:18:17 +00:00
d7a5cccb5b 2.5 - Code shuffling in arithb.c
* Moved all the euler-rotation functions so that they were near each other in the file.

* Tagged all functions relevant to axis-angle rotations
2009-09-01 06:48:40 +00:00
47beb68a0f Open recent list was arseabout, only adding files on save, rather then open.
This is problematic for a few reasons...
* I'd often save a blendfile only so it would appier in the open recent menu.
* Saving files (when you dont need to) makes access times less useful.
* binary diff's in SVN dont give any useful info. Sometimes I wasnt sure if I actually edited or saves for fast re-opening.
* Testing 2.4x files with animation data in 2.5 can loose info.
* Its not logical and other apps dont work this way.

Also made the recent file list in the file browser display the most recent item first (like the open recent menu).
2009-09-01 00:52:03 +00:00
121f310fab Add missing define to rna for sound system. 2009-08-31 22:50:08 +00:00
87929332c7 Changed sync difference time of sound strips to 0.5 seconds instead of 1 frame. Maybe this should be a user preference setting? 2009-08-31 18:18:10 +00:00
959757c2d7 Part 2 of the 2.49b commit.
We now should freeze and tag!
2009-08-31 18:17:06 +00:00
8b18843b98 remove "_amount" from rna names, its not helpful. 2009-08-31 16:36:02 +00:00
043641de72 corrections to epydocs 2009-08-31 13:03:38 +00:00
07abbaa9d7 2.5 - Datatype defines for MotionPaths and Visualisation Settings 2009-08-31 04:39:08 +00:00
7ad4386653 Grease Pencil: Cleanup Work + Bugfixes
* Disabled temporary debugging prints, since event handling now seems stable

* Modified the initgrabz() code so that when the cursor is behind the viewplane, the z-factor is calculated as if the cursor was on the other side of the view plane. This seems to work well, and doesn't seem to have any negative side-effects (yet).
2009-08-31 04:24:28 +00:00
3fa51df744 Grease Pencil: Restored some editing operators (convert and delete active frame)
* Convert operator - can currently be used to convert active Grease Pencil layer to curves. I had a look at making this part of a special "curve sketching" macro, though it seems that we cannot have modal operators coming first in a macro (and also cannot specify operator calling modes)

* Delete Active Frame operator - does what its name say it does. It deletes the active frame for the active layer of Grease Pencil sketches.
2009-08-31 01:58:11 +00:00
1a968f64dc Fix crash reported by DingTo with camera transform in camera view. 2009-08-30 21:57:10 +00:00
ca96a75af4 == Sequencer ==
Fixed hddaudio for sample formats other than 16 bit (8 bit e.g.)
2009-08-30 19:38:22 +00:00
9abfb508de 2.5 Mist/Camera:
Changing Mist values didn't update the mist camera drawing in 3D View, when enabled. 
Bug reported by Julian|H. Thanks!
2009-08-30 19:26:18 +00:00
557cf2906b 2.5 Sound:
* Updated UserDef RNA so that only compiled in audio drivers are displayed. (Missing definitions in Makefiles, someone fix please!)
* Fixed libsndfile and ffmpeg building with CMake with msvc.
2009-08-30 16:18:05 +00:00
7df39b5ea2 Grease Pencil: Basic Support for Image Editor Again
* Grease Pencil works again from Image Editor now. For now, the GPencil datablock is linked to the Image Editor space, but this can be changed if need be.

* Made Grease Pencil hotkeys into a separate Grease Pencil keymap, which can get included automagically like for frames/ui/v2d/etc. by supplying ED_KEYMAP_GPENCIL as part of st->keymapflag

* Temporarily restored the nasty hack to make View2D-aligned sketches in Image Editor to use OpenGL lines only. I still dunno why this doesn't work normally. 
(Probably related is that strokes are not visible when there's no image visible atm).
2009-08-30 13:32:08 +00:00
d4d520c9a2 Grease Pencil: Various Drawing Fixes
* Restored option to have strokes aligned to screen space. By default, this is not enabled (the setting for view-space is the default instead). 

* Fixed bugs related to drawing/erasing in screen space.
2009-08-30 11:37:29 +00:00
970c9214b5 * Fixes for shading objects inside volumes 2009-08-30 07:07:02 +00:00
466d59461d * Limit available texture coordinate types when using volume materials 2009-08-30 06:42:53 +00:00
46ba8b6edb Grease Pencil: Hacky fix for "broken strokes" bug (pun intended) ;)
For the strokes drawn using OpenGL lines, moderately-sized changes in the pressure between two points could result in the stroke being disjointed, since a new GL_LINE_STRIP would need to be created with the new line thickness due to the new pressure value. 

(In reference to the summary of this commit, this bug was noticed by Matt Ebb (broken). This bug is also in 2.4x, but was suprisingly not really noticed.)
2009-08-30 06:10:38 +00:00
05ebac71ca Grease Pencil: Bugfix (Dots) + RNA Wrapping
* Making single dots should be possible again.

* Wrapped the debug option, 'Show Points', for layers, which makes all the points on the layer get drawn with dots indicating positions of stroke points.
2009-08-30 05:54:27 +00:00
e104b42929 Grease Pencil: Drawing Improvements
* Smooth strokes can now be drawn again, with normal (i.e. reasonably speedy feedback again). 
Previously slow drawing was caused by a bad notifier being used - the full screen was redrawn each time instead of just the relevant region. Now, only the relevant region is redrawn while drawing, and a proper flush is done for the rest of the screen at the end.

* Made drawing straight lines a proper drawing 'mode' for Grease Pencil now. Use the Ctrl-D-LMB hotkey to draw straight lines in this way. The (buffer) line drawn now will accurately represent the final straight line instead of drawing the freehand path taken as before.
2009-08-30 04:48:34 +00:00
4b206c675c just some comment fixes 2009-08-30 03:10:03 +00:00
2cb6078900 was crashing when joining in-link to in-link for the logic buttons. 2009-08-30 02:09:57 +00:00
75697c40a0 svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22717:22875 2009-08-29 23:41:09 +00:00
c2696ae631 quiet warnings 2009-08-29 23:35:13 +00:00
371c3bcf7a 2.5 Sound: Bugfixes. 2009-08-29 23:13:27 +00:00
530deb73a9 Workarounds for 2 rna bugs.
- mesh face properties that have no data are tested for length.
- the rawtype of MFace.verts is not set, defaulting to CHAR, meaning only verts with 256 verts could be added from python. temp workaround by making PROP_RAW_INT the first in the enum. For some reason makesrna.c doesn't set the raw type MFace.verts at all.
2009-08-29 23:05:46 +00:00
c6ccf5fd2e Cloth didn't update properly in particle mode. Don't understand why the particle mode check was there to begin with, but if removing it causes trouble later on some other solution can be figured out. 2009-08-29 21:52:57 +00:00
7a56228343 2.5 Paint:
* Don't do shared vertex colors for every vpaint dot. Profiling on a large mesh showed vpaint spent about 65% of the time in this function, but most of the time no difference will be apparent in the result. (Could make an operator so the user can force this operation after doing some painting.)

TODO:
Profiling now shows most time spent in drawing the mesh. (This is done twice for vpaint, the first time for finding backbuf sampling.)
2009-08-29 21:51:58 +00:00
5ab556e066 bugfix: on windows, it wouldn't correctly recognize directories and import python modules on load.
BLI_exist vs BLI_exists (fun times were had by all)
2009-08-29 20:29:29 +00:00
a261330d5c 2.5:
Bugfix: Preview-Render didn't update when changing material/texture id block/slot.
2009-08-29 18:02:37 +00:00
47190b2009 Missing null check in particle edit code caused a crash when using search boxes. 2009-08-29 17:25:26 +00:00
c9041b61c5 fix for problem building 2009-08-29 15:46:38 +00:00
874d38eeb4 Point cache editing:
- Baked point caches for particles, cloth and softbody can now be edited in particle mode.
	* This overwrites the old cloth/sb cache editmode editing.
	* The type of editable system is chosen from a menu.
	* For particles the current particle system and it's current cache are used.
- Currently this only works for caches that are in memory, but some automatic conversion from disk to memory and back can be implemented later.
- All tools from hair editing can't be applied to point caches and are hidden in the tool panel and specials menu. Some functionality like subdividing paths can be later implemented in a slightly different way from how it works for hair.
- Code is not yet optimized for speed, so editing might be slow sometimes.

Known issues:
- Cloth doesn't update properly while in particle mode, due to the way cloth modifier currently works. Daniel can you check on this?
- As "particle mode" is not only for particles any more some other name would be in place?
- Better icons are needed for the path, point, and tip-modes as the current icons from mesh edit mode are quite misleading.
- Direct editing of point velocities is not yet implemented, but will be in the future.

Other changes:
- Hair editing doesn't require a "make editable" button press any more.
- Multiple caches in single particle system disables changing emission properties.
- Unified ui code for all point cache panels.
	* Defined in buttons_particle.py and imported for cloth, smoke & softbody.
- Proper disabling of properties in ui after baking point caches. (Daniel could you please make needed disable code for smoke panels as their functionality is not familiar to me.)
- Hair weight brush has been removed. Once hair dynamics is re-implemented I'll code a more useable alternative to the functionality.

Bug fixes:
- Unlinking particle settings crashed.
- Deleting the active object with particles in the scene crashed.
- Softbody didn't write point caches correctly on save.
2009-08-29 15:20:36 +00:00
c03004f93e 2.5: Added some sound actuator UI to reveal its real power, check it out! :) 2009-08-29 14:53:00 +00:00
3080a62733 Grease Pencil UI - Small fixes for the toggles (icons working correctly now) 2009-08-29 11:48:38 +00:00
8930a4fd33 Grease Pencil: UI (i.e. Panel) for Settings
Restored the UI for access to the GP layers. 

There are still a few minor bugs here:
* Wrong icons on the toggles - even when they're enabled, they only show a single state
* The ID-template doesn't seem to be showing up. Dunno what's going wrong there...
2009-08-29 06:50:32 +00:00
f46f6dc7ba Grease Pencil: Toolbar Compatability Fixes
* When starting Grease Pencil from the toolbar, strokes are now started only when a click-drag begins. 

* Made the 'straight-lines' option an RNA property for the operator

* Added an exec() callback and relevant stroke-collection stuff so that interactive redo/changing settings can work. 
WARNING: this is highly unstable here - keeps crashing though I cannot determine the cause yet.
2009-08-29 01:54:10 +00:00
beee5161a9 UI for sound (un)packing. 2009-08-28 22:04:37 +00:00
17fc83e537 Error in last commit. 2009-08-28 21:54:41 +00:00
77c587a825 2.5 Paint:
* Removed the BKE_sculpt file and moved it's contents (basically just the sculpt session struct) to BKE_paint
2009-08-28 21:47:11 +00:00
03b3d2cb79 Sound packing/unpacking operators. 2009-08-28 21:47:05 +00:00
99eae3d93a SVN maintenance. 2009-08-28 21:31:13 +00:00
6f4e0e8e54 2.5 Paint:
* Cleaned up some vertex paint code. Reduces code duplication a bit.
2009-08-28 21:07:55 +00:00
6f80bff0e2 2.5: fix bug in ID property loading, which also loading python
RNA collections saves as ID properties.
2009-08-28 20:51:30 +00:00
a179d16550 Moved unpack_method_items to the right place. 2009-08-28 20:41:12 +00:00