Commit Graph

19822 Commits

Author SHA1 Message Date
Brecht Van Lommel
fd511eb984 Node Bugfixes:
* Compo node backdrop works again.
* Compo node previews and backdrop now get correct color management
  float to byte conversion.
* Compo nodes got unecessarily recalculated while moving nodes.
* Fix compo node viewer nodes not getting activated correctly.
* Main compo node preview render computations are now outside of
  mutex lock, so better for multithreading.
* Tex node outputs did not work in some files loaded from 2.4.
* Change RNA updates to take into account groups that may be shared
  between multiple node trees.
2009-10-07 22:05:30 +00:00
Brecht Van Lommel
1b7e5b9abe WM: test with context-less add notifier. Notifiers are one
of the main reasons for passing along context, while actually
they don't need much context at all. Might be removed again,
but would like to have this especially for RNA API functions.
2009-10-07 21:39:24 +00:00
Campbell Barton
0c857a4f14 - made ungrab a second function - WM_cursor_ungrab
- ungrab can restore the position of the mouse clamped to the window bounds (much nicer for transform)
2009-10-07 21:19:35 +00:00
Martin Poirier
a4e36f24c7 [#19354] Second press of axis key didn't do local orientation when global was selected as user orientation (frankly, I don't like it much to have an exception for that, but backward compatibility is ok, unless someone else has a strong argument against). 2009-10-07 20:55:14 +00:00
Diego Borghetti
ef13a40fed Makefile: Add missing raytrace directory. 2009-10-07 19:29:39 +00:00
Campbell Barton
763358fe91 copy icon in the material buttons list view so you can copy the current set of materials to other selected objects, (like Ctrl+L, Materials in 2.4x) 2009-10-07 16:32:55 +00:00
Brecht Van Lommel
df63ccd904 Transform Mirror:
* Make Ctrl+M key work for mirror in 3D view.
* Fix mirror along global axis, was mirroring around all axes when
  the object was rotated, due to wrong matrix order, was also not
  working in 2.4.
* Pressing e.g. X twice still doesn't go to local mode, would fix
  but don't know how the code is intended to work.
2009-10-07 16:10:06 +00:00
Campbell Barton
93b5375ca1 Making new faces (fkey, scanfill etc) didnt create faces with the active material.
Keep the editmesh material and active material in sync
2009-10-07 15:16:08 +00:00
Brecht Van Lommel
cf4f00b2fa Preview Render:
* Fixes for texture and material nodes.
* Texture node previews now work more like materials.
2009-10-07 14:48:29 +00:00
Campbell Barton
17c083a38f 'Add Group' back in the add object menu 2009-10-07 14:40:27 +00:00
Campbell Barton
568be17326 Option to copy the data path of an RNA button 2009-10-07 13:22:56 +00:00
Campbell Barton
9cf78144f1 Updated descriptions from Ron Walker 2009-10-07 12:19:47 +00:00
Matt Ebb
f5a9f420fb * More fixes post-raytrace commit 2009-10-07 12:17:29 +00:00
Campbell Barton
a899e9dd18 Check if the object is in editmode with (ob->mode==OB_MODE_EDIT) rather then (ob==scene->obedit)
Was trying to fix a hard to redo crash with custom bone shapes in editmode but cant redo. still, will help with future multi-editmode.
2009-10-07 11:36:29 +00:00
Brecht Van Lommel
efe3858000 Bugfix: move to layer was not assigned to M key yet. 2009-10-07 10:54:43 +00:00
Campbell Barton
395e61e77c own mistake in last commit 2009-10-07 09:55:18 +00:00
Daniel Genrich
60e75845fb Fix compile warning, function does not return anything (void function). 2009-10-07 09:49:37 +00:00
Campbell Barton
dfe7cde9f1 - rna path lookup crashed if the string was null (reported by Cessen with an empty driver)
- added TexMesh access ([#19505] Missing option : TexMesh)
- Ctrl+Tab works again, not-so-nice workaround, disallow switching to paint modes from editmode, but would be nicer to manage this with keymaps.
2009-10-07 09:23:29 +00:00
Campbell Barton
77476b294f Experimental option to allow moving the mouse outside the view, "Continuous Grab" in the user-prefs.
- Useful for dragging buttons to the far right when theyd otherwise hit the screen edge.
- Useful for transform though probably NOT what you want when using the transform manipulator (should make an option).
- When enabled, number buttons use this as well as a different conversion of mouse movement
  float numbuts: mouse 1px == 1-clickstep
  int numbuts: 2px == 1 (tried 1:1 but its too jitter prone)

details...
- access as an option to GHOST_SetCursorGrab(grab, warp)
- Currently all operators that grab use this, could be made an operator flag
- only Ghost/X11 supported currently
2009-10-07 07:11:10 +00:00
Campbell Barton
828395744a own warnings added last commit 2009-10-07 05:26:13 +00:00
Matt Ebb
e22b5fb271 * Add numpad enter as an alternative key to confirm/execute file browser 2009-10-07 05:13:31 +00:00
Matt Ebb
a8b82a49ad * notifier fix to redraw upon changing lamp shadow type 2009-10-06 23:37:11 +00:00
Matt Ebb
f413091dfa * Fix for previous 'set object as camera' operator - now properly sets the scene active camera too, plus better notifier. 2009-10-06 23:13:07 +00:00
Matt Ebb
91400d9da8 * Fix for crash with new raytree 2009-10-06 23:05:53 +00:00
Martin Poirier
46402ccddc netrender: use TEMP env var if available to set default temporary path 2009-10-06 21:28:45 +00:00
Campbell Barton
041ce137e2 mistake in last commit 2009-10-06 20:00:23 +00:00
Brecht Van Lommel
88ab193a21 Bugfix: IK constraint pole angle range was not correct. 2009-10-06 17:15:10 +00:00
Guillermo S. Romero
9e38ec2506 Add raytrace subdir to Makefiles.
The makefile is a copy of the source one, not tuned, just to unbreak build.
This raises some questions: why separate dirs? why each build system takes
a different approach (different libs vs all source files into one)?
2009-10-06 17:01:00 +00:00
Damien Plisson
07aba4f933 Cocoa port : First pure Cocoa version !
(Mostly for very early testers)

Cocoa uses coordinates with y=0 at bottom : updated wm_window.c and wm_event_system.c for COCOA build to avoid double conversions in response to mouse move events and GHOST_getCursorPosition

Known limitations:
No fullscreen support
Font issue in preference panel
libSDL uses some Carbon functions
2009-10-06 16:56:22 +00:00
Campbell Barton
8d54982f37 Material buttons now view the active node material shading settings.
Selecting a material in the node tree sets this as the active material and the buttons view redraws.

Added rna prop material.active_node_material

Currently its not clear what settings are used by the node material and the base material (needs some tedious research) so I made most panels use the node material with the exceptions of volumetrics, physics and halo settings.

We'll probably need to split the panels up to do this properly.
2009-10-06 15:31:25 +00:00
Nathan Letwory
86307b58c0 == SCons ==
* Unzip of python31.zip now works also for Python 2.5. Patch by b333rt (thanks again!)
2009-10-06 15:01:46 +00:00
Nathan Letwory
6282b7998b * copying of python31.zip and zlip.pyd is not necessary anymore, since the zip is unpacked by default to .blender/python/lib 2009-10-06 14:25:55 +00:00
Nathan Letwory
76019d5fb9 * Remember, C-style declarations at the *beginning* of a scope, not C++ style wherever one pleases (before first usage). 2009-10-06 14:09:40 +00:00
Campbell Barton
dd8e2897ba new operator - bpy.ops.wm.call_menu(name="SOME_MT_menu")
This calls a registered menu as a popup so we can reuse header menus , currently used for Node editor and Sequencer add menu (Shift+A), can be used for toolbox too.
2009-10-06 13:04:31 +00:00
Andre Susano Pinto
2011ba50c8 Last fix still failed to link under mingw.
This time it works! (gcc and mingw can handle compile and link)
2009-10-06 12:23:25 +00:00
Joshua Leung
22605ec759 Bone Selections: Ability to set bones as unselectable
In the Outliner, it is now possible to toggle per bone the selectability of the bone in the viewport, as for Objects using the restriction columns. This can also be set using the RNA-api.

I've tested all commonly used tools IMO, but there may still be a few which I've missed. Please report those cases.

PS. For some reason, the define was already there, but not connected up to anything. Can't remember why anymore, but here it is...
2009-10-06 11:33:58 +00:00
Campbell Barton
c12cb02c56 sculpt was checking if multires was the last modifier,
instead check if its the last displayed modifier
2009-10-06 11:21:57 +00:00
Andre Susano Pinto
ba3ec58d01 *Added memset's to make sure counters start on zero
*Disabled ray counter (can be enabled on render/extern/include/RE_raytrace.h by commenting out the define)
*marked bvh_node_merge() as static inline (hopping it now compiles on gcc and mingw)
2009-10-06 10:52:14 +00:00
Joshua Leung
08deeee455 One last try - this should fix the remaining issues:
* Made bvh_node_merge() in svbvh.h static (fix suggested by jaguarandi). This makes mingw link again.

* Also, patched my previous fix for  ... = {}; since mingw didn't like the other fix (which was for msvc).
2009-10-06 10:32:07 +00:00
Joshua Leung
c93127d06f Some more compile fixes for jaguarandi's commit, this time for msvc+scons
* Replaced ... = {}; with ... = {0}; 

* Solved problem with logf(), where msvc couldn't figure out which version of log() to call (solved by casting the int argument to a float, but could also have been to double)...

* The cflags and cxxflags for scons when compiling the rendering module were only valid for gcc compiles. These will still need to get added for msvc sometime, but for now, there are no more warnings about unknown options...
2009-10-06 10:23:25 +00:00
Matt Ebb
58557ea737 * Cmake fix for raytrace accel, still not 100% but getting there... 2009-10-06 04:37:25 +00:00
Matt Ebb
2936d791a2 * missed this in last commit 2009-10-06 04:37:01 +00:00
Joshua Leung
1c940d7677 Attempts at some compile fixes for jaguarandi's code:
* mingw almost compiles again cleanly, except for a linking error when linking blender http://www.pasteall.org/8297
* win64 should compile again too to a similar degree?
* silenced warnings about no newlines...
2009-10-06 03:40:50 +00:00
Joshua Leung
3fe274b072 Several fixes:
* Code for generating 'Object' summary of Keyframes for DopeSheet (which is also used by the TimeLine for getting keyframes to draw) now considers materials, object data, and particles too.

* Rearranged the way that keyframing-related settings were presented in the User Preferences. The way the settings were grouped was plain confusing, and based on biased views from the old system. For the record, 'needed'+'visual' are always considered when inserting keyframes, 'always' is for autokeyframing, and default interpolation is only used for newly created F-Curves.

* Fixed bug #19472 - Scroll wheel scrolls in the wrong direction for enum-menus that were flipped (i.e. window type menu and 3d-view mode selector).
2009-10-06 03:05:20 +00:00
Andre Susano Pinto
04b60b4324 Merged Soc 2009 - raytrace optimization [0]
from branch [1] at rev 23647

[0] - http://wiki.blender.org/index.php/User:Jaguarandi/SummerOfCode2009/
[1] - https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-jaguarandi
2009-10-06 02:56:11 +00:00
Matt Ebb
d28d3194f4 * Added 'set object as camera' operator
3D View: View -> Cameras -> Set Object as Camera  (Ctrl Numpad 0)
2009-10-06 02:45:42 +00:00
Andre Susano Pinto
63a88075b5 svn merge -r 23528:23646 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2009-10-06 01:58:22 +00:00
Andre Susano Pinto
11bdf6ea10 Added #ifdef __SSE__ so it can still build when SSE is disabled at compile time 2009-10-06 00:28:07 +00:00
Andre Susano Pinto
a62e37bfbe blibvh safe for 64bits 2009-10-05 23:30:00 +00:00
Janne Karhu
69a2432574 Small fix for some old files crashing in particle drawing. 2009-10-05 23:04:40 +00:00