Campbell Barton
306e2b4878
stule cleanup
2012-09-04 18:47:08 +00:00
Brecht Van Lommel
adea12cb01
Cycles: merge of changes from tomato branch.
...
Regular rendering now works tiled, and supports save buffers to save memory
during render and cache render results.
Brick texture node by Thomas.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures#Brick_Texture
Image texture Blended Box Mapping.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures#Image_Texture
http://mango.blender.org/production/blended_box/
Various bug fixes by Sergey and Campbell.
* Fix for reading freed memory in some node setups.
* Fix incorrect memory read when synchronizing mesh motion.
* Fix crash appearing when direct light usage is different on different layers.
* Fix for vector pass gives wrong result in some circumstances.
* Fix for wrong resolution used for rendering Render Layer node.
* Option to cancel rendering when doing initial synchronization.
* No more texture limit when using CPU render.
* Many fixes for new tiled rendering.
2012-09-04 13:29:07 +00:00
Campbell Barton
56b28635e7
code cleanup: rename BLI_in_rctf() --> BLI_rctf_isect_pt(), to conform with our naming convention.
2012-08-23 18:25:45 +00:00
Campbell Barton
1ab5a4f0ed
despeckle composite node
2012-08-23 06:48:01 +00:00
Campbell Barton
1939baa47d
style cleanup
2012-08-22 16:44:32 +00:00
Campbell Barton
267f625179
lasso select works in the node editor again, Ctrl+Alt+LMB, Ctrl+Alt+Shif+LMB to deselect
2012-08-22 13:34:06 +00:00
Campbell Barton
2b9fd376e1
all areas of blender now do node tree id user count management, except for some exceptions like making a node tree local and material clipboard.
2012-08-22 09:35:46 +00:00
Campbell Barton
ffcc63a7d0
node tree functions for copy/free now support optional ID user count management,
...
this is not used yet, so no functional changes.
2012-08-22 08:54:18 +00:00
Campbell Barton
c92ab5c3ef
code cleanup: use rect size macros
2012-08-21 20:34:05 +00:00
Campbell Barton
77f47799dd
code cleanup: use BLI_RCT_SIZE macro
2012-08-20 23:06:17 +00:00
Campbell Barton
26f073b327
macros for rectangle center and size
2012-08-20 15:29:02 +00:00
Campbell Barton
6c74d1147e
minor cleanup to node pasting.
2012-08-20 13:59:19 +00:00
Campbell Barton
0f6a6c7499
fix for crash pasting nodes into a node tree when the ID pointer is lost.
...
also fix for ID user count on paste which wasn't increasing.
2012-08-20 13:51:25 +00:00
Campbell Barton
63f143a3cc
use rctf struct for UI buttons and blocks, easier to read and means we can use BLI_rctf functions.
2012-08-18 16:53:46 +00:00
Campbell Barton
2845816863
HDR color picking was not working for node space
2012-08-17 13:00:11 +00:00
Campbell Barton
1465b06fad
code cleanup:
...
- pass wire color to camera draw_viewport_object_reconstruction() rather then getting the theme color directly.
this makes a change where selection color wont be used for unselected cameras (which IMHO is better, drawing selected wire color on nonselected cameras was confusing).
- use rgb_uchar_to_float()
2012-08-17 12:32:13 +00:00
Campbell Barton
81dd80f1d3
support fro HDR color picking (values over 1.0) when color picking in the image editor or node space.
2012-08-16 14:47:14 +00:00
Campbell Barton
60915c9099
escape key now quits composite.
2012-08-15 11:31:04 +00:00
Campbell Barton
15bd03f958
fix for missing change to fluidsim from last commit and name jobs a more useful name - 'wm_job'.
2012-08-15 10:03:29 +00:00
Campbell Barton
97859e8709
add wm job types they are not used yet, so this just defines them for new jobs add add argument to search by job type.
2012-08-15 09:42:06 +00:00
Campbell Barton
9591142294
add variable size option to bokeh blur node, remove f_stop option (it wasnt used), and add blur_max to the interface.
2012-08-14 14:31:39 +00:00
Campbell Barton
59fedc6b7c
rename blur Reference to Variable Size, improve tooltip
2012-08-14 12:39:12 +00:00
Campbell Barton
c140ccb9fd
2d smoothview now scales back the time to move for smaller view zoom/panning.
...
also the compositor bounds (used for scroll bars), were only calculated when pressing the home key in 2.63, how this is updated on draw
2012-08-12 19:35:47 +00:00
Campbell Barton
9cce2d8645
smooth-view for 2d views, graph editor, sequencer, node view, works with border zoom, view selected, view all.
2012-08-12 01:07:31 +00:00
Campbell Barton
b96c622015
style cleanup
2012-08-11 22:12:32 +00:00
Campbell Barton
c567cf3fab
code cleanup: WM naming conventions
2012-08-11 21:35:24 +00:00
Campbell Barton
5e0f254afa
utility functions for getting/setting rectangles for operators.
2012-08-08 20:38:55 +00:00
Campbell Barton
f0951f58ca
code cleanup: rename G.afbreek --> is_break, G.rendering --> is_rendering
2012-08-08 18:37:06 +00:00
Campbell Barton
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
Lukas Toenne
543cee14ca
Renamed the mx/my coordinates in SpaceNode to more descriptive 'cursor'. This follows the naming in the View3D space, since this vector is used for essentially the same purpose (adding nodes at a specific location), although not used for any transform origin and not displayed in the editor.
...
Note: While renaming DNA properties is usually dangerous and can break files, in this case it is possible because the mx/my values are only used at runtime.
2012-08-08 17:37:02 +00:00
Lukas Toenne
bd3ec60651
Search option for adding nodes.
...
The 'Add' menu in the node editor now has an option 'Search' at the top, which opens a separate popup for searching node types by name.
The operator for this is implemented completely in Python (this could also be done for the regular menu-based Add options in the future). There are a few necessary extensions to the RNA as well:
* The View2D struct in regions is now exposed. Currently only contains converter functions for coordinates from the region to the view (i.e. scrolled and zoomed view space). Used for converting mouse location to node space.
* The SpaceNode exposes the existing 'cursor_location' for operators to store mouse position beyond invoke calls. Not used for anything else (transforms) so far.
* The edit_tree in SpaceNode is also exposed, this is needed for operators to work correctly inside node groups.
2012-08-08 16:44:16 +00:00
Campbell Barton
098cbdac62
fix for minor regression in own recent edits: sample line was drawing in newly created curve nodes (Hue correct).
2012-08-08 08:41:10 +00:00
Campbell Barton
4005b88b30
minor edits to node view
...
- when single (non frame) node selected, dont zoom in, just pan.
- only reset the background when pressing home key
2012-08-07 18:45:24 +00:00
Campbell Barton
06791ba281
select linked
...
- dupligroup now only selects objects with dupligroup enabled.
- selected onjects are skipped, this way and undo push wont happen if no new objects are selected.
also minor edits to node view all/selected
2012-08-07 17:20:21 +00:00
Campbell Barton
258b4a8dad
add view selected for node view
2012-08-07 16:30:34 +00:00
Lukas Toenne
cfe7bab080
Fix for drawing arrows on node lines between two reroute nodes. This was a typo in r48762 which inverted the arrow scale.
2012-08-06 20:48:08 +00:00
Campbell Barton
2b8ac9bc61
inpaint node from tomato branch by Peter Schlaile
...
http://en.wikipedia.org/wiki/Inpainting
2012-08-06 13:45:11 +00:00
Lukas Toenne
54b61401ed
Fix #32271 , Node group/parent crash. The grouping operators need to also look at the non-selected nodes in the edit tree to find nodes whose parent is to be moved but the child is not, and then detach those.
2012-08-06 11:23:09 +00:00
Campbell Barton
2988c81d6b
fix [ #32272 ] crash while rendering and modifying the node setup.
2012-08-06 10:13:49 +00:00
Campbell Barton
df81b50bf2
prevent copy/paste from incompatible types (compo -> material for eg) - would crash instantly.
2012-08-06 08:41:45 +00:00
Campbell Barton
5bb97305a4
fix for node clipboard leak on exit, also use blenders convention for function naming with BKE clipboard funcs.
2012-08-06 08:25:24 +00:00
Campbell Barton
7d2190b79b
fix for transforming parented nodes, the node would check its parent was not transformed, but in fact its parents parent could still be getting transformed still, also, the order of initializing transform data made this check unreliable.
...
fix for mingw broke from one of my own commits, changing header order fixes.
2012-08-05 21:06:56 +00:00
Campbell Barton
e592f757e8
fix for crash when moving frames about in the node space, was possible to move a node into its own child frame (causing recursive parent loop).
...
also some minor code cleanup.
2012-08-05 20:40:26 +00:00
Campbell Barton
887d517e3b
use define for 0.375 = GLA_PIXEL_OFS, used all over the interface.
...
also use M_SQRT1_2 in math_rotation.c
2012-08-05 17:27:52 +00:00
Campbell Barton
97e9659c53
style cleanup
2012-08-04 12:54:27 +00:00
Campbell Barton
ee86f7fe15
dont re-combute composite nodes when knife and add-socket operators don't add any links.
2012-08-03 23:44:19 +00:00
Campbell Barton
84df85164d
fullscreen mask editing now works in the image space over a viewer node.
2012-08-03 20:56:04 +00:00
Sergey Sharybin
6374e3b49d
DO not draw active outline for collapsed nodes when they're not selected
...
Also made corrections to currently unused code
2012-08-03 11:39:34 +00:00
Lukas Toenne
771a7241b9
Fix for node placement when copying to/pasting from clipboard. Child node location is always relative to parent nodes (if the parent is also copied) and must not be offset. Also takes the offset of the edited node group in the editor into account now.
2012-08-03 10:51:29 +00:00
Lukas Toenne
c12d0fd76c
Fix for node clipboard copy operator for Frame nodes. Was redirecting the parent pointer of the original instead of the copied nodes.
2012-08-03 10:18:52 +00:00