Commit Graph

20954 Commits

Author SHA1 Message Date
Brecht Van Lommel
51e74c26f7 Fix #22189: fields rendering crashes. 2010-07-05 09:31:24 +00:00
Campbell Barton
d9e9aa1e4d changes to color wheel commit.
- use a flag rather then a2 for locking color.
- remove float from button added for color wheel size, use a2 instead.
- holding shift on the color wheel gives higher precission.
2010-07-05 07:08:10 +00:00
Joshua Leung
05eb72ff14 Bugfix #22030: Animation Editors and Layer Animation
Added new filtering option for animation editors (indicated as the 'ghost' toggle beside the 'select'(-ed only) toggle), which will include objects/bones that aren't visible (i.e. are hidden or on a hidden layer). 

This should make it possible to edit such types of animation, and also prevent flickering as these channels come in/out of view.
2010-07-05 04:37:30 +00:00
Joshua Leung
faf1c9a4bb Bugfix #22685: Screen update slow, animation player ALT-A, files created with 2.4x
Modifiers were being mistakenly recalculated at every frame as long as the object had animation, slowing things down due to incorrect depsgraph recalc tags.

Renamed OB_RECALC -> OB_RECALC_ALL to reduce future confusion. During this process, I noticed a few dubious usages of OB_RECALC, so it's best to use this commit as a guide of places to check on. Apart from the place responsible for this bug, I haven't changed any OB_RECALC -> OB_RECALC_OB/DATA in case that introduces more unforseen bugs now, making it more difficult to track the problems later (rename + value change can be confusing to identify the genuine typos).
2010-07-05 03:55:28 +00:00
Joshua Leung
02b0188c16 #22736: request - adjust windows' corner handles
I've tweaked the contrast of the corner widgets to be a little bit more contrasty and seem a bit more tactile by making the lines fade out from brighter bands to dimmer bands. 

Hopefully this will make them more easily discernable without being too loud.
2010-07-05 03:02:57 +00:00
Joshua Leung
0a62388bfb Bugfix #22584: Long Keyframes not working
This was broken by a bad (unfinished/unused) case, which stopped them from being created properly in most cases.
2010-07-05 02:00:24 +00:00
Joshua Leung
8c042f779f Bugfix #19221: Layer animation not working
Now object layers and scene-base layers are now always synced. In 2.4x, they were only synced if there was animation for layers, but it's probably not worth checking for this these days...

Finally we can close this bug report :)
2010-07-05 01:11:25 +00:00
Joshua Leung
fe6dfa52e9 Compile fix for r29954. He probably missed a file in the commit. 2010-07-05 00:48:57 +00:00
Campbell Barton
9c4e3a7b6b bugfix [#22724] "Scene" switch on the console doesn't work 2010-07-05 00:00:40 +00:00
Campbell Barton
a824220d3e better errors for failier to read blends 2010-07-04 23:26:55 +00:00
Campbell Barton
66a72343ef fix for building with cmake 2010-07-04 22:43:51 +00:00
Andrea Weikert
4135f1310c Patch [#22339] File/installation paths changes
Update after discussions on IRC:
* operating system specific path retrieval is moved back to GHOST, nothing blender specific here though
* cleaned up path functions a bit to remove #ifdefs
* removed Cocoa from blenlib again

TODO:
* Matt, Damien, please check and correct the functions for Cocoa and Carbon, could only put back existing code but needs adjustment
* finish GHOST_getBinaryDir - this should replace the BLI_where_am_i eventually as well as BLI_getInstallationPath on Windows and get_install_dir for the blenderplayer runtime
* It would probably be nice to define GHOST_getTempDir as well and move those out
* more cleanups...

NOTE:
Things are likely broken for macs
2010-07-04 21:14:59 +00:00
Campbell Barton
83a2a4e5b8 Improvements to Blenders color balance (lift/gamma/gain).
Fairly closely match some mac application colin has called 'Looks', to give better results.
- lift is now applied non linear (was being added to the color)
- change the color wheel to preserve the luminance of the gamma and gain values, this stops the color from being set too dark (option for the color wheel template).
- sub-pixel precission for the color wheel since the white area at the center can make a lot of difference with a very small change.

This change will make existing node and sequencer setups lift render slighly differently however discussed this with Ton and he's ok with it.
2010-07-04 20:59:10 +00:00
Brecht Van Lommel
8f825bd460 Fix #21062 and #22175: crash with node previews being calculated while
editing nodes. Now preview jobs are killed before making any node edits.
2010-07-04 19:58:52 +00:00
Brecht Van Lommel
6c0f3d052e Detect SSE building support with cmake, and moved setting the defines
out of the render mode cmake file into the main one. Should fix PPC
compile, and hopefully not break others.
2010-07-04 18:40:59 +00:00
Brecht Van Lommel
effefdc9fa Fix #22432: unrenderable objects cast shadow in GLSL. Committing
patch by Matt, I only reviewed it.
2010-07-04 17:22:24 +00:00
Campbell Barton
15de21e438 fix for 2 bugs in own recent commits,
- 29881 broke BLI_stringdec in some cases.
- poll function for view home crashed view menu because the rv3d isnt available (still needs fixing).
2010-07-04 17:14:06 +00:00
Campbell Barton
574d307635 fairly sure this is a typo, matt/elubie please check 2010-07-04 16:47:58 +00:00
Guillermo S. Romero
ce832cac03 SVN maintenance. 2010-07-04 16:47:35 +00:00
Ton Roosendaal
790491b0f0 Fix for paths commit from Andrea:
For Mac, there was no code supporting Carbon. Added a stubs function
to make it compile, but it doesn't work yet properly.
2010-07-04 16:34:24 +00:00
Brecht Van Lommel
cc68f45502 Fix cmake/OSX build after path changes. 2010-07-04 16:20:42 +00:00
Campbell Barton
05d2b904b2 remove unused var warnings in linux 2010-07-04 15:52:32 +00:00
Andrea Weikert
ca81aa704e Patch [#22339] File/installation paths changes
Patch Tracker: http://projects.blender.org/tracker/?func=detail&aid=22339&group_id=9&atid=127

This patch implements the proposal outlined here:
http://wiki.blender.org/index.php/Dev:2.5/Source/Installation/Proposal

Original patch by Matt Ebb.
Contributions by Nathan Letwory, Damien Plisson and Andrea Weikert

NOTE:
This is a work in progress commit, some work still needs to be done on the SCons and CMake files for this to work properly, but at least should compile and the files should be created in the right directory.

Commit discussed on IRC with Ton and Campbell.
2010-07-04 15:35:23 +00:00
Brecht Van Lommel
3ca7b160a6 Fix #22028: rendering from 3d view was OR-ing with scene render layers,
this isn't helpful, so just use 3d view layers.
2010-07-04 12:26:46 +00:00
Brecht Van Lommel
90162cb0cb Fix #21894: backface selection wasn't working correct with < 24 bits colors,
e.g. thousands of colors on OS X, due to use of uninitialized value. Problem
tracked down and patch provided by Shane Ambler, thanks!
2010-07-04 12:24:19 +00:00
Joshua Leung
ace570cb10 Fix for 15-day-old bug causing crashes when loading old 2.49 files, especially those with animation.
Reverting 29563 ("* Moved do_versions_ipos_to_animato from blender.c to readfile.c, where it should be.") part to the original version that (so far) is guaranteed to work fine. 

While this means that "nice software design" isn't obeyed once again, this works and the other approach doesn't. So far there really isn't anything really obviously different between the approaches, even after trying a few different placements of the version patches within the file-reading internals.
2010-07-04 12:16:01 +00:00
Campbell Barton
f9933b2fee commenting group timeoffset since it causes groups objects to recalculate modifiers etc. constantly even when animation isnt playing. 2010-07-04 11:56:31 +00:00
Campbell Barton
8aa0f9b033 last fix still could give corrupt sound, rather then updating the sound info just add and remove the sound handle. 2010-07-04 10:51:10 +00:00
Campbell Barton
4a6cc10d75 swap strip data wasnt updating sounds 2010-07-04 10:22:31 +00:00
Campbell Barton
8e97e561a9 convenience functionality for browse button (requested by Colin for the sequence editor, useful for managing files for the final edit)
- Holding Alt while clocking on the browse button opens a file browser with the containing dir.
- Holding Shift opens the file its self in the default application.

obscure but at least theres a tooltip so its not totally hidden.
2010-07-04 10:02:30 +00:00
Thomas Dinges
ce94f52dbc Fix for [#22714] Constraints stack : move up and move down buttons problem
* Constraint template now uses 2 rows as well, when the area width is small. 
* UI Code could use some code/layout cleanup still, will look into that soon.
2010-07-04 09:42:00 +00:00
Campbell Barton
db4d317f6b 'Copy To Selected' (right click menu item) now works for sequence strips, useful for copying blend modes & opacity 2010-07-04 09:13:00 +00:00
Campbell Barton
5553f66eb7 sequencer
- effects strips now add directly above the strips they operate on (almost always what you want)
- blend mode for new image/movie/scene/color strips is now cross: without this adjusting alpha will fade to black rather then the strip below.
- SEQ_HAS_PATH macro didnt include sound-ram or sound-hd
- meta drawing code has misleading variable names (from own commit).
2010-07-04 08:49:54 +00:00
Campbell Barton
c7869f9f85 - draw sequence strips within metastrips using their real start/end and channel positions.
- dont show color balance unless its enabled.
2010-07-04 01:56:04 +00:00
Campbell Barton
281902d6ee sequencer re-assign inputs back 2010-07-03 22:25:22 +00:00
Peter Schlaile
6e5a436f56 == Sequencer ==
This fixes:
[#22722] Removing a sequence strip doesnt remove assosiated fcurves

by using the same hack that is used for moving curve-data along with the 
strips on grab.

Should be cleaned up (both functions!) by making sequencer-strips 
finally true IDs.

Until that happens, there is only an more or less ugly way of doing 
that.
2010-07-03 21:13:08 +00:00
Campbell Barton
c9627f7883 home key to center the camera offset. 2010-07-03 20:47:03 +00:00
Campbell Barton
bc95714528 disable ref-counting for groups. groups work differently where they are only removed on load if they include no objects.
this was causing groups to be removed by rna if a group's field was cleared and the file was saved (even when it was used elsewhere).
2010-07-03 19:06:49 +00:00
Campbell Barton
80f6102629 better reporting for file i/o failier, use system error message in more places: Permission Denied, No space left, File not found etc.
- blend load/save uses os message.
- image load gives os message. (remove check for slash at end of line, just let the os report an error)
- python api load image/font/text raise errors with message (was just retuning None for image and font)
- minor edits to py api errors.
2010-07-03 17:47:06 +00:00
Campbell Barton
9a85435e96 rna api:
rename object.matrix --> matrix_world
added object.matrix_local (parent relative matrix)
2010-07-03 17:39:29 +00:00
Brecht Van Lommel
7a495a12e1 Fix for layer restoring with duplis, could be wrong sometimes
when there with multiple instances and recursion.
2010-07-03 17:19:44 +00:00
Campbell Barton
0b939f9ea7 WM_operator_props_popup was calling ED_undo_push_op() which is also called by wm_operator_finished.
This made new image operator and seperate image sequence call ED_undo_push_op() twice.
Tested with move to layer and python select pattern operators and it works ok.

including backtraces for the double calls just incase.

# first
#2  0x00000000009ff4c4 in ED_undo_push_op (C=0x20e1098, op=0x3ea13a8) at /media/data/blender_ideasman42/blender_trunk/source/blender/editors/util/undo.c:187
#3  0x00000000008b5fa1 in WM_operator_props_popup (C=0x20e1098, op=0x3ea13a8, event=0x3ea0d28) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_operators.c:1032
#4  0x00000000008be6be in wm_operator_invoke (C=0x20e1098, ot=0x2408bd8, event=0x3ea0d28, properties=0x3e943d8, reports=0x0) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_event_system.c:613
#5  0x00000000008bfa44 in wm_handler_operator_call (C=0x20e1098, handlers=0x25509a0, handler=0x25cb658, event=0x3ea0d28, properties=0x3e943d8) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_event_system.c:1158

# second
#2  0x00000000009ff4c4 in ED_undo_push_op (C=0x20e1098, op=0x3ea13a8) at /media/data/blender_ideasman42/blender_trunk/source/blender/editors/util/undo.c:187
#3  0x00000000008bde8e in wm_operator_finished (C=0x20e1098, op=0x3ea13a8, repeat=0) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_event_system.c:439
#4  0x00000000008be82a in wm_operator_invoke (C=0x20e1098, ot=0x2408bd8, event=0x3ea0d28, properties=0x3e943d8, reports=0x0) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_event_system.c:640
#5  0x00000000008bfa44 in wm_handler_operator_call (C=0x20e1098, handlers=0x25509a0, handler=0x25cb658, event=0x3ea0d28, properties=0x3e943d8) at /media/data/blender_ideasman42/blender_trunk/source/blender/windowmanager/intern/wm_event_system.c:1158
2010-07-03 12:55:03 +00:00
Campbell Barton
de3dc33494 render override was still showing game physics bounds 2010-07-02 20:46:29 +00:00
Campbell Barton
15be7b215f - changes to the sequencer so new strips use the data name.
- removed the name option for the sequence operators.
2010-07-02 20:09:42 +00:00
Campbell Barton
213a45bed8 changes to file selector so 'directory' property from an operator is used when available.
also made some other changes to the path functions used.
2010-07-02 17:44:57 +00:00
Brecht Van Lommel
643ec7a12f Fix #22690: gestures were not working correct after inbetween mousemove
changes, also forgot to update armature sketching operator.
2010-07-02 11:26:12 +00:00
Matt Ebb
6bdc4c72d4 revert previous auto-naming change for meta elements,
broke the name-based grouping.
2010-07-02 03:11:10 +00:00
Diego Borghetti
49b8bb6f7f Fix new zoom in/out values for nodes in old files.
The problem was a missing update to the ARegion and the
first space, that is why old file don't get the
new zoom in/out values.
2010-07-01 19:29:27 +00:00
Campbell Barton
51fd10a1b5 adding image strips wasnt working, use the 'directory' component of the file selector rather then the full 'filepath' to fix this.
added flags for filename/filepath/directory args to WM_operator_properties_filesel().
2010-07-01 19:28:45 +00:00
Brecht Van Lommel
93bdba9b21 Fix for crash with PBVH in background mode, patch by Campbell. 2010-07-01 15:12:10 +00:00