Commit Graph

18703 Commits

Author SHA1 Message Date
230eec9917 chaning the camera from the scene buttons didnt update the views. moved some scene/view functions from view3d_view.c into BKE_screen since they need to be accessed when changing cameras from outside the view. 2010-04-22 19:57:18 +00:00
5b666c95ce skip instancing objects/groups when linking in a scene, the scene has references to the objects/groups its self. 2010-04-22 18:19:21 +00:00
7a4a0d8082 - Added search filter in outliner header. Only activates filter on enter,
should make it do 'live' search while types.
- Connecting Viewer nodes sometimes didn't recalculate, depsgraph needed
  remade
2010-04-22 18:16:56 +00:00
749f027e1d rna rename start/end --> frame_start/end 2010-04-22 17:35:00 +00:00
33acae1a15 only override start and end frames with particle's if the partices are emitters. Was very confusing for hair baking. 2010-04-22 16:23:44 +00:00
3c4339ccf7 Remove unused var from blenfont. 2010-04-22 12:05:19 +00:00
9957e926f9 warning cleanup 2010-04-22 11:35:36 +00:00
3df0db98d3 Fix [#22088] Object's material changes (links) to other when moving an object
to an other layer

WM_operator_props_popup() and subsequent block handle function redo_cb()
was popping an operator undo, without having pushed one previously - 
this would undo one too many times when using the properties invoke popup.

Fixed by adding an undo push to WM_operator_props_popup()
2010-04-22 11:35:11 +00:00
a56b72fd82 BugFix:
[#20854] PROPERTIES STAMP: Rendering stamp flickers in output renders

Blenfont was not thread safe, that is why one thread can change
the font properties (size, dpi, color, etc) at the same time
that the stamp draw on the image, and then the problem.

To make blenfont thread safe I have to change two important things:

1) Every BLF_* function take one argument, the font id.
2) We have two new function to make font "thread safe":
	BLF_load_unique
	BLF_load_mem_unique

This two function are for case like stamp, that need and own font
that don't share the glyph cache, so can draw without problem
in a different thread.

Why the BLF_*_unique function ?

Because blenfont keep only one copy of a font and keep a list of
"glyph cache". Every glyph cache have size and dpi, so if two
different thread access the same font at the same time, they can
change value and finish with something like the stamp problem.

Why don't remove the glyph cache ?

Because if we do that, we finish with a font object for every size
and dpi, and the stamp is really a special case that happen in
the rendering process, so I really thing is better keep the
glyph cache and make this two new function to handle this
special case.

(When I say "font object" I mean have the same freetype font multiple
times just to have differents size and dpi)

As Matt point we still can have one case that two thread access
the BLF_*_unique function at the same time, but I am looking to
fix this with some class of thread lock.

For now I test and work fine, so if some one found problem, please
let me know.

Campbell I have to change the python api (python/generic/blf_api.c)
to the new syntax, so maybe you can take a look at this.
2010-04-22 10:56:45 +00:00
c8c22d2cf6 rna: added lib.parent access and made filename editable. 2010-04-22 08:25:05 +00:00
a2b6abeee1 Fix [#22097] missing panels in texture tab
Made texture/texture slot context a bit less flaky when dealing with active material and 
texture nodes inside a node material in the node editor. Now if the active material has 
nodes enabled, and there are no active material/texture nodes inside it, nothing will be 
shown in the texture properties (similar to 2.49).
2010-04-22 06:59:41 +00:00
5c94896490 Fix [#22078] Cannot apply modifier in python (context error)
Previously all modifier operators relied on the buttons layout data context pointer to 
decide which modifier to work on. This meant that these operators would only work 
from from the properties panel, and not from scripting/macros or for operator redo.

This commit makes all modifier operators take the modifier name as an operator 
property, so the operators can be re-done or executed outside of the modifier panel. 
When invoking the operators from the modifier panel, they automatically fill in the 
operator property from context.

This isn't a perfect API design, but it does bring these operators in line with the design 
of being able to access all UI functionality via other means like scripts.
2010-04-22 01:55:10 +00:00
27fa482714 Fix for bug in r28320, sizeof(pointer) was breaking path functions 2010-04-22 01:06:59 +00:00
da70064211 copying values from int buttons were adding floating point 0.00000's 2010-04-21 21:43:29 +00:00
1132d0774d Save a Copy, (operator option for save as),
Too many times we have images in blend files that are just saved renders.
2010-04-21 19:14:20 +00:00
981c36df0d fix [#22080] double clicking a file in file browser to open a file doesn't work, r28290 win32
* Forgot to move keymap back from KM_PRESS to KM_CLICK (was testing code). KM_PRESS doesn't play nicely with double click
2010-04-21 18:13:26 +00:00
ec9f2af659 fix for crash drawing weights in lattice editmode. 2010-04-21 14:46:32 +00:00
fba7ebcbea replace add_v3_v3v3() --> add_v3_v3() where possible 2010-04-21 12:27:48 +00:00
f7717b2e80 option to use curve point weights to influence particle effectors. 2010-04-21 11:59:47 +00:00
0430572dee bugfix [#22098] Binreloc buffer overrun
from Dan Eicher (dna)

there are many of these in blender however this case could happen quite easily.
2010-04-21 07:59:16 +00:00
9c69a8028b bugfix [#22091] Crashing on Add Shortcut 2010-04-21 07:56:34 +00:00
0ebcc8557f [#22100] Jpeg2000 null pointer dereference
found by Dan Eicher (dna)
2010-04-21 07:49:06 +00:00
10796a1a7b Fix [#22099] Interactive Loopcut hs anoyin problem
Made the loop cut confirmation (when finding an edge ring to cut) happen on 
mouse press, rather than release.

This has a nice side effect when using the 'release confirm' option, combining 
the two steps into one - with this on you can click once to immediately place the 
cut in the center, or click+drag to move the cut line where you want it to.

See: http://mke3.net/blender/devel/2.5/loopcut_releaseconfirm.mov
2010-04-21 04:21:27 +00:00
3ad3d9e5ca Fix [#22082] World gradients look like poo
(nice)

Added dither support to in-progress render float->byte conversions.
2010-04-21 02:48:49 +00:00
24eedb2175 vertex group option for lattice, needed for applying a lattice to a beard/moustache without moving the roots about. 2010-04-20 21:38:55 +00:00
3754201720 fix for crash getting the current material & more verbose library errors 2010-04-20 16:12:39 +00:00
716e9c5f47 Fix case of accessing freed windowmanager memory after reading a file. 2010-04-20 14:58:46 +00:00
870115be85 hidden durian feature for entering a new path when linked libs are not found. 2010-04-20 10:36:00 +00:00
b52eddd95a Made playback operators use exec() callback instead of invoke(), so that these can be used for Python scripts.
Note that this is not the patch by dfelinto on the mailing list, since that fix would cause compiler warnings. Also, the invoke() (with the extra wmEvent* arg) is superfluous here, so there shouldn't be any problems with making this exec() only instead.
2010-04-20 02:39:07 +00:00
3a04262c4c Added ability to use up to F19 on the keyboard (previous max was F12).
GHOST is already collecting up to F24, but I've only got up to F19 on this 
keyboard so I've just committed what I could test here.
2010-04-20 00:08:27 +00:00
4d39e04102 change mathutils 'repr' functions to closer match input 2010-04-19 22:02:53 +00:00
4a99303967 == file browser ==
Select from last selection. This new setting allows to select all files from the last selected to the current. (Works like SHIFT+SELECT in Windows file browser)
Keymap is LEFTMOUSE+ALT for now since LEFTMOUSE+CTRL is already used for renaming (like in outliner)
2010-04-19 19:29:40 +00:00
37a1297a55 Fix crash when invoking File->Save from the menu
Operator can't call itself! Just call the actual exec function instead.
2010-04-19 18:11:00 +00:00
454470e0bd setting array slices wasnt running rna update
eg:
 scene.visible_layers[:] = obj.layers
2010-04-19 13:37:44 +00:00
8abd21dbc5 Fix crash playing back files with saved speed control sequencer strip,
frameMap cache was not set to NULL on load.
2010-04-19 13:27:54 +00:00
1dce678c2b Fix problem with limit rotation constraints during transform. This code
would convert from quat to matrix and back if the bone had any constraint,
but did not normalize the quat first as done in other places, giving a
sudden jump when starting transform on some bones with constraints. Two
changes:

* Normalize quaternion first.
* Only do this conversion on bones with limit rotation constraints,
  instead of all bones with any constraint.
2010-04-19 09:38:36 +00:00
3b502ca727 image operator poll functions for reload and replace now check for a valid image, but not a valid buffer. 2010-04-19 07:28:23 +00:00
2f56d8d2e7 Fix [#22056] Minor UI problem in File Browser 2010-04-19 04:39:01 +00:00
7a1a7ddbee Reverting edit mode Shrink Fatten to Alt+S after talking to Ali. This
makes it inline with curve Shrink Fatten and is a nicer regular use
hotkey
2010-04-19 01:22:56 +00:00
cf4d63c09d == sequencer ==
* new icon for split view (at least temporary)
* icon buttons in header rather than popup menus for better efficiency (can easily be changed in python UI script again)
2010-04-18 18:46:16 +00:00
4d1903870a Brought back editable anim_startofs and anim_endofs both with shuffle test 2010-04-18 18:30:55 +00:00
59b661a290 Bugfix: text buttons in zoomed in or out views, didn't get the cursor on the
right location for mouseclicks.
2010-04-18 17:05:55 +00:00
75911e0e30 Brought back negative Channel-Variables in preview header, so
that preview can show final result from inside a meta strip again.
2010-04-18 16:30:46 +00:00
8efdcaf038 removed icons in proxy preview render size selection. (They don't
really help, if they are non-existent...)
2010-04-18 15:30:21 +00:00
f1eab048d3 == Sequencer ==
Removed seqrectx and seqrecty global variables.
2010-04-18 14:48:53 +00:00
4fde9823fd possible fix for [#22057] Autoname L/R in bones names center bones as .R
Bone would get a '.' added even when there was no extension.
(center limit would still be useful)

- name flipping function used sizeof() incorrectly.
- ED_lorem should be extern.
2010-04-18 14:47:45 +00:00
153081accd Applied:
[#21390] Sequencer: Shifted frames on Time Flip/Flip Backwards

thanks to Koen Ribus(kori) for the patch.
2010-04-18 13:25:51 +00:00
cf1953bb7e Brought back secondary input filtering, thereby
fixing 
[#21014] SEQUENCER: Can no longer apply colour balance filter to colour effect strip.

Also: reordered some UI elements so that
geometry, time and color modifications are grouped together.
2010-04-18 13:05:17 +00:00
a5431b53dd Brought back N-key for sequencer preview. 2010-04-18 12:19:07 +00:00
4fcbc36c1c Added RAW-DV-files (.dv) to filelist, so that drag-n-drop
to the sequencer timeline works properly.
2010-04-18 12:00:53 +00:00