Commit Graph

4690 Commits

Author SHA1 Message Date
a82b7171a2 == Action/IPO Editors - Code Cleanup ==
Added two macros which are used to test if the active Action/IPO editor is displaying data from a scaled NLA-strip.
2007-06-26 10:08:58 +00:00
613646b33e This commit is a modified version of patch #6860
It adds read only dds support.  (Writing will come later)

Kent
2007-06-25 19:50:25 +00:00
9dd0c5abe5 Whoa, a new feature!
Sequence Editor: SHIFT+R, Remap Paths (also in pull down menu)

This allows to remap the root of a path to another directory.
Works on all selected Image strips. That way you can make absolute
paths relative, for example.

Example:
original path: /mnt/orange/finals/06_which_way/06_03b/
to be remapped: /mnt/orange/finals/
remap to: //
new path: //06_which_way/06_03b/
2007-06-25 13:01:46 +00:00
b5fb85aede == Sculpt Mode ==
Refactored and improved sculptmode-stroke.c.

* With smooth stroke on, the Spacing value is now taken into account (if zero, the default value of two is still used)
2007-06-25 11:07:12 +00:00
d44d203893 == Sculpt Mode ==
* Made partial redraw mode a bit more robust, fixed a couple of potential problem spots
* Fixed display of smooth stroke with partial redraw.
2007-06-25 04:55:09 +00:00
b7c8eb39ed == Sculpt Mode ==
Removed the draw_flag field from SculptData, moved the two draw flags over to SculptData.flags
2007-06-24 23:02:58 +00:00
8cf2d5ca4a == Sculpt Mode ==
Added a new input control that smooths the brush stroke.

This option controlled by the menu item Sculpt>Input Control>Smooth Stroke. When enabled, the brush has a delayed effect on the model; a green line is drawn to indicate the smoothed path of the stroke. After ~200 pixels, the first half of the stroke will be applied to the model; the process then repeats, with a new segment of the stroke being applied to the model after every 200 pixels. On mouse up, any remaining portion of the stroke will be applied.

Other changes:
* Added a flags field to SculptData; currently only used for smooth stroke but other flags can be moved into it
* Moved the damaged_rects/verts into SculptSession
* Simplified brush application by moving init_editdata into do_symmetrical_brush_actions
* Removed Averaging from sculpt Input menu; smooth stroke should take its place

TODO:
* Fix display of the smooth line in Partial Redraw mode
* Make the smoothing and delay factors adjustable
* Optimize the stroke application (currently using the old 'dot' style of applying the brush)
2007-06-24 22:28:28 +00:00
25194b5b09 == Action Editor - Keyframe Selection ==
Recoded this again to further simplify it. This method could apply to the NLA editor if keyframes remain in there after a redesign.
2007-06-23 12:09:41 +00:00
a01616198a == Action Editor ==
Fixed a few little memory leaks introduced during my recode. They were only likely to occur in a few cases that don't happen very often.
2007-06-23 07:12:09 +00:00
1c41d19964 == Auto-Keyframing ==
I've moved the Auto-Keyframing functionality out of the special_aftertrans_update function into two separate functions, which can be called independent of the Transform system. One is for Bones, while the other is for Objects.

This now means that the Shift-S Snapping Tools will now work with auto-keyframing.
2007-06-23 06:56:16 +00:00
188e3ede4f == NLA/IPO Muting ==
This commit adds a few open/closed 'eye' icons to the NLA editor to toggle IPO-block muting on Object (IPO) channels, and Action Strip muting on Action Strips, like in the Action Editor.
2007-06-22 11:55:00 +00:00
aad13c1b87 == IPO Muting ==
It is now possible to temporarily 'mute' and IPO-block or IPO-curve. This functionality has been requested by the Plumiferos team, and is based off Patch #6866 by Juho Vepsäläinen (bebraw).


Usage:
* In the IPO Editor header, there is a toggle button (open/closed eye used for Outliner Visibility restriction) beside the IPO-blocktype menu, when there is an active IPO-block in the IPO Editor.

* In the Action Editor, beside the 'lock' icon for channel protection on Action/Constraint channels, there is the open/closed 'eye' that can be toggled to set the mute status of said channel's IPO-block.

* Also in the Action Editor, you can mute individual IPO-curve channels in a similar manner.
2007-06-22 11:09:31 +00:00
8975e34439 == PyConstraints - 2 Fixes ==
* Error print for getSettings was lacking a newline
* When adding a PyConstraint using Ctrl-Alt-C, the script is now queried to find out whether it uses a target.
2007-06-20 09:58:16 +00:00
d9b94275c0 Action Editor:
Removed a little bit of old code I forgot to remove :)
2007-06-20 07:33:25 +00:00
0616766f87 == Constraints - Code Cleanup ==
Simplified the code in two functions where checking for targets/subtargets could really have been done using Constraint API methods (constraint_has_target, get_constraint_target).
2007-06-20 07:11:31 +00:00
d3c4ec9e5c When saving render result images from the image editor with
image->save as, default to the scene image type settings (just like 
with F3: save rendered image).

Multilayer is still available in the list but most of the time, 
it's not what you want by default. Too many times I've saved out a  
render and frustratingly ended up with a huge 'filename.png.exr'.
2007-06-20 00:36:53 +00:00
b3996a53c2 Fix segfaul reported by slikdigit in irc. 2007-06-19 22:03:08 +00:00
396cef6062 == NLA Editor - Bugfix 6780 ==
Deleting a marker using DELKEY or XKEY requires undoing action twice. Changed order of deleting markers and deleting keys/strips to be in line with Action Editor.
2007-06-19 12:25:44 +00:00
ab8728df2a == Action Editor - Scrolling Fix ==
This fixes a problem introduced in http://lists.blender.org/pipermail/bf-blender-cvs/2007-May/010005.html

Now channels in older files will be in the view again upon loading.
2007-06-19 11:52:14 +00:00
3caf086137 == Action Editor - Long Keyframes ==
I've recoded the way long keyframes work a bit, so that more cases are handled accurately. Now, it takes into account the number of IPO-curves that have keyframes in them on the start/end frame of the long-keyframe, instead of just taking the total number of IPO-curves present for the channel being drawn.
2007-06-19 09:46:52 +00:00
01e8789f3f == PyConstraints ==
At last! The ability to code constraints in Python. This opens up many interesting rigging possibilities, as well as making prototyping constraints easier.

* A PyConstraint script must begin with the line 
#BPYCONSTRAINT
* It must also define a doConstraint function, which performs the core actions of the constraint.
* PyConstraints use IDProperties to store custom properties for each PyConstraint instance. The scripter can choose which of these ID-Properties to expose to a user to control the behaviour of the constraint. This must be done using the Draw.PupBlock method.

Credits to Joe Eager (joeedh) for coding the original patch on which this is based. I've made heavy revisions to large parts of the patch.

For more detailed information, and some demo scripts, see the following page:
http://aligorith.googlepages.com/pyconstraints2
2007-06-18 07:41:21 +00:00
a499da7192 Curve Selection Tool Refactor:
This commit refactors curve selection system to use certain curve selections
functions that encapsulate setting of selection flags. New function to select
adjacent control points was introduced too. Refactoring made it possible to 
simplify certain existing selection functions quite a bit. 
New functionality was delivered as well. Select more/less works now with NURBS 
as expected. Also two new curve selection functions were added: Select Every Nth 
and Select Random. 

See http://wiki.blender.org/index.php/BlenderDev/Curve_Selection_Tools for 
further information.
2007-06-14 14:36:27 +00:00
0ed2e0e706 == Armature - Duplicating Bones ==
Duplicating bones now also duplicates the Transform Locks, and IK DOF settings, along with constraints. 

I have noticed a few random crashes while editing armatures recently, that seem to occur after duplicating a chain of bones. I've yet to find the cause though.
2007-06-14 12:29:56 +00:00
88cca5dc1a draw_mesh_fancy was using the original meshes stats rather then the derived mesh (that is being drawn)
This should not change teh way it works currently, however modifiers that add faces or edges need this so they render properly.
2007-06-12 05:59:37 +00:00
065c39389c == Multires ==
* In add_levels, moved the call to update_levels to the beginning rather than the end. This is slightly faster, as there's one less level to update. Also fixes a bug (introduced in rev. 10836?) that made multires's add_level differ slightly from the subdivide modifier.
2007-06-10 23:31:38 +00:00
52d6635528 == Multires ==
* Removed two unused structs from multires

* Replaced one-line get_float function with a macro

* During add_level, move the freeing of temp data to after the update_level, so that this data isn't calculated twice
2007-06-10 23:01:23 +00:00
2494a5ed0d == Multires ==
* Small optimization to multires based on profiling data; calculation of edge boudndaries is now cached along with multires mapping data to improve the performance of the catmull-clark code.

* Removed an unneeded call to create the temporary data when loading files.
2007-06-10 21:51:11 +00:00
d39d2e7279 Patch #6717:
Select Inverse function in the UV editor, by Juho Vepsalainen.
2007-06-10 14:06:34 +00:00
2393896cee == Multires ==
Removed an unused integer from MultiresFace
2007-06-10 09:23:50 +00:00
c61198d006 == Multires ==
Modified the vert_edge_map and vert_face_map arrays in MultiresLevel so that the data is stored only for as long as it is needed -- for adding levels and updating levels. Once the modifications are 
complete, the mapping data is deleted, which provides a large reduction in memory usage for a minor increase in processing time for updating levels.
2007-06-10 06:00:42 +00:00
4d2cbdb038 only shadow didnt redraw 2007-06-09 14:25:05 +00:00
c356f3d68f == NLA Editor ==
Yet another commit to fix Shift-S snapping for keyframes. The code to snap an Object's IPO block's keyframes to the current frame should be evaluated before the expanded/collapsed status of said object is evaluated.
2007-06-09 07:24:08 +00:00
274b504d66 Fix for bug #6828:
It was missing checks for screen status.

Log for my previous commit.
Sorry for the hassle.
2007-06-09 05:56:43 +00:00
ca1ccb84bc Index: source/blender/src/editscreen.c
===================================================================
--- source/blender/src/editscreen.c	(revision 10896)
+++ source/blender/src/editscreen.c	(working copy)
@@ -1403,7 +1403,7 @@
 				if(sc == NULL)
 					sc= G.main->screen.first;
 				
-				setscreen(sc);
+				if(is_allowed_to_change_screen(sc)) setscreen(sc);
 				g_activearea= NULL;
 				towin= 0;
 			}
@@ -1416,7 +1416,7 @@
 				if(sc == NULL)
 					sc= G.main->screen.last;
 				
-				setscreen(sc);
+				if(is_allowed_to_change_screen(sc)) setscreen(sc);
 				g_activearea= NULL;
 				towin= 0;
 			}
2007-06-09 05:51:11 +00:00
9168c16dda Fixed following issues:
*if a vertex group was renamed in the outliner, the name was not updated 
correctly in visible buttons window
*certain buttons in Render panel didn't update other buttons windows in 
case their value was changed
*same goes for Logic context of the Buttons Window
*also cleaned up unnecessary code from Logic context and made Timer 
field to work correctly when pressed with left mouse button
2007-06-09 05:41:55 +00:00
d1711b3972 Patch [#6729] from Juho Vepsäläinen. It adds inverse and random select for metaelems. I simplified random select a little. 2007-06-08 14:17:13 +00:00
dc8a10bf58 Missing menu items in header menu, Mark Sharp and Clear Sharp. Removed one debug print 2007-06-08 11:52:44 +00:00
4a9aa0e064 == Action/NLA ==
* Snap and Mirror tools for the Action Editor, now respect NLA scaling again. I accidentally omitted the relevant code when recoding.

* Snap tool in the NLA Editor, now works for the keyframes displayed for each object too. There's one case I've to check up on later, as there might be interesting conflicts.
2007-06-08 07:31:03 +00:00
93a3b2b78a Some more coverity fixes.
This one moves some pointer checks up in the code 
(they were after the pointer was used, kind of useless at that point) ;)

Kent
2007-06-07 02:00:11 +00:00
add68862b9 Bugfix #6809: K key in 3d viewport does not exit keyframe mode in Ipo Editor
Patch by Juho Vepsäläinen (BeBraw) included with the report fixes this issue.
2007-06-06 04:13:02 +00:00
cf528cc946 Again lets check for -1 from BLI_filesize before continuing.
Kent
2007-06-05 15:51:24 +00:00
25935dbdb1 == Action Editor - Major Recode ==
I've just spent two days rewriting the Action Editor to unify its code and bring it under control again (it was 107kb, now it is around 73 kb). 
* This means that there are no longer separate functions for each tool for Actions and Shapekeys in the Action Editor, and also no more missing tools for either. 
* Also, I've gotten rid of the need for those complicated, hierarchial loops used for action channels, as they were a pain to keep consistent with each other.
* Baking functions have been removed. See user-level-changes for more details.
* Reorganised and completely rewrote code in editaction.c, thus the lengthy diff.

User Level Changes:
* For the meantime, border-selecting Action Channels has been disabled
* Baking functions have been removed. As far as I have been able to find out, these were really non-functional anyway. Besides, I don't think they really belonged in editaction.c
* Editing Shapekey keyframes now yields the same feature set as for those in Action Channels.
* There shouldn't be any major bugs left, but I might have missed something.

Further Work:
* Do a cleanup like this to the Action Editor drawing code in drawaction.c
* Baking??? (harkyman seems to be doing something about this)
2007-06-05 12:11:00 +00:00
6b9fe36e0b Fixed outliner to update when scriptlinks are altered. 2007-06-05 08:26:18 +00:00
ba958bea0f -> Custom Properties for Mesh entities
In order to give import/export script authors the ability to add properties
to inidividual faces, vertices and edges in the same manner as they are able
to do with ID structures three new custom data types have been added to blender
for floats, integers and strings.

Things to note:

-Since property Layers are custom data, they are added to all verts, edges 
 or faces at once.
-Only one property layer for each unique property name may exist. In  other 
 words, you cannot have a float layer as well as an integer layer
 both with the same name.
-No user interface for this exists at the moment.

The following methods and attributes have been added to the Blender.Mesh
Python module and it's object types:

->MVert/Edge/FaceSeq:
	addPropertyLayer(name, type)
	removePropertyLayer(name)
	renamePropertyLayer(original name, new name)
	properties(readonly list.)

->MVert/Edge/Face
	getProperty(name)
	setProperty(name, value)

->Mesh module
	PropertyTypes (readonly dictionary)
2007-06-04 19:18:19 +00:00
d5ee6fc865 interface_draw.c - when the char panel was displayed it would mess up font size for other panels.
drawview.c - removed unneeded comment (as GSR pointed out)
2007-06-04 10:53:37 +00:00
531ffedba9 == Sculpt Mode ==
Kind of fixed [#6688] sculpt - if 2.44 blend is openned in 2.43 with flatten brush selected causes crash

* Added better handling for new brushes; if more brushes are added they will no longer cause a crash (but this doesn't help older Blenders compiled without this fix.)
2007-06-04 08:03:37 +00:00
8e530d5074 Patch from GSR [#6595] Ortho/Persp reporting in the View names 2007-06-04 00:35:19 +00:00
9e1b15ff19 [#6787] OOPS window draw changes patch from Matthew Plough (meestaplu)
And added groups to the oopsview
2007-06-04 00:09:41 +00:00
4287796f61 == Multires ==
Fixed bug [#6798] Multires eventually destroys Meshes with Shapekys

* Moved the check for multires on adding shapekeys into insert_shapekeys rather than on the "Add Shape" button click
2007-06-03 20:24:09 +00:00
aad39edee7 == Action Editor - IKEY ==
Modified behaviour of IKEY in Action Editor a bit, so that the keyframes added have been updated to reflect the current state of an object/bone. Previously, it only used the current values of the ipo-curves they were being keyframed (maintained as fallback method now).
2007-06-02 04:09:10 +00:00