Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-25Refactor BKE_blender into separate headersCampbell Barton
- BKE_blender_version.h (only version defines & versionstr). - BKE_blender_copybuffer.h (currently only used for view3d copy/paste). - BKE_blender_undo.h (global undo functions). - BKE_blendfile.h (high level blend file read/write API).
2015-12-03Node callback for handling link insertion and swapping of occupied inputs.Lukas Tönne
Nodes have a feature for moving existing links to unoccupied sockets when connecting to an already used input. This is based on the standard legacy socket types (value/float, vector, color/rgba) and works reasonably well for shader, compositor and texture nodes. For new pynode systems, however, the hardcoded nature of that feature has major drawbacks: * It does not take different type systems into account, leading to meaningless connections when sockets are swapped and making the feature useless or outright debilitating. * Advanced socket behaviors would be possible with a registerable callback, e.g. creating extensible input lists that move existing connections down to make room for a new link. Now any handling of new links is done via the 'insert_links' callback, which can also be registered through the RNA API. For the legacy shader/compo/tex nodes the behavior is the same, using a C callback. Note on the 'use_swap' flag: this has been removed because it was meaningless anyway: It was disabled only for the insert-node-on-link feature, which works only for completely unconnected nodes anyway, so there would be nothing to swap in the first place.
2015-11-12Cleanup: unused definesCampbell Barton
2015-08-18Refactor translation code out of blenfontCampbell Barton
- Add blentranslation `BLT_*` module. - moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`). - moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.
2015-06-17Cleanup: duplicate includesCampbell Barton
2015-06-08Fix T44979: Crash when rendering with more threads than the system onesSergey Sharybin
Revert "Nodes: Remove hardcoded BLENDER_MAX_THREADS number of threads" This reverts commit fdc653e8ce77a188138dc707207139c3d1e6b166. The threads override is not affected by the scene, and hence the limit of the threads was not giving correct result. Need to re-consider some things here.
2015-05-03Fix T41893: inconsistent color management on sculpt texture nodes previews.Brecht Van Lommel
2015-04-13Nodes: Remove hardcoded BLENDER_MAX_THREADS number of threadsSergey Sharybin
Use actual available number of threads now, which will make it easier to increase max number of threads, without having some sloppy memory usage and without doing some redundant checks on thread data which was never used.
2015-03-28Cleanup: use BKE_texture_ prefixCampbell Barton
2015-03-17Part 2 of D1082 by Troy Sobotka, remove our functions that do lumaAntony Riakiotakis
calculations and use the OCIO one instead.
2015-02-04Fix T43450: Texture node tree failed to clampKévin Dietrich
Clamping routine was not implemented. This fixes T43450. Reviewers: #nodes, #rendering, sergey Reviewed By: sergey Maniphest Tasks: T43450 Differential Revision: https://developer.blender.org/D1038
2014-11-29Cleanup: unused headersCampbell Barton
2014-11-05Code cleanup: Replace magic number with verbose name for math node operationsSergey Sharybin
Should be no functional changes, just much less cryptic code.
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-17Fix T41761, muting not working with texture nodesAntony Riakiotakis
This was disabled to fix T41349, however seems that if we don't pass delegates for muted nodes everything work fine.
2014-08-12Fix T41349: Muting texture nodes can cause crashes.Lukas Tönne
Problem is that setup of stack indices which refer to the same stack entry can lead to cyclic TexDelegate node pointers, causing an infinite loop. Fixing this would take too much time and require recoding large parts of the texnodes system, which is earmarked for scrapping anyway ... So for now just disabled muting in texnodes to avoid crashes.
2014-07-16Cleanup: Adhere to our naming convention for BKE_linestyle.h APICampbell Barton
2014-07-16Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().Tamito Kajiyama
The function is to retrieve the active line style ID datablock from a scene and there is nothing related to bContext.
2014-05-14Code cleanup: indentationCampbell Barton
2014-05-09Code cleanup: styleCampbell Barton
2014-05-07Fix some nodes showing up as undefined after the fix in 79c345acc21b.Brecht Van Lommel
A bunch of nodes had invalid storage definitions that don't refer to an actual DNA struct. Ref T40033.
2014-05-07Nodes: add absolute value operation to all math nodesMatt Heimlich
Reviewed By: dingto, brecht Differential Revision: https://developer.blender.org/D507
2014-05-03Patch D246: Texture Marks for freestyle strokes, written and contributed by ↵Tamito Kajiyama
Paolo Acampora. Reviewers: brecht, kjym3, #freestyle Reviewed By: brecht, kjym3 Differential Revision: https://developer.blender.org/D246
2014-04-26Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, ↵Campbell Barton
modifiers, nodes)
2014-04-20Nodes: make default group nodes slighly wider, to match other node width ↵Brecht Van Lommel
defaults.
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-24Fix T38813: missing color management in texture nodes preview.Brecht Van Lommel
2014-01-04Changed percentage and 0-1 number fields to use sliders. This is more ↵William Reynish
consistent. Reviewed by Brecht van Lommel, Thomas Dinges and Jonathan Williamson
2013-10-29Fix #37192, Rendered preview causes crash when deleting a material node in ↵Lukas Toenne
shader node editor. The 'free' callback for node execution data was accessed from the node->typeinfo, but this pointer can become invalid because the render database is not immediately freed after the job finishes. To avoid access to dangling node pointers, store the function callback in the exec data itself. The node pointer must not be accessed in the free function (wasn't used before either), these functions are purely for the execution data.
2013-09-10fix/workaround [#36694] Texture node groups tend to crash Blender a lot.Campbell Barton
2013-07-29minor changes for confusing code.Campbell Barton
- memset() was argument was truncated. - outliner had redundant NULL check. - node texture was allocating memory to make a unique name which isnt needed for a fixed size string.
2013-07-27fix for writing to freed memory enabling texture node treeCampbell Barton
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-06-01Extended max size for group node types from 200 to 400, in case users need ↵Lukas Toenne
long socket names visible.
2013-05-29Cleanup: Removed all NODE_OPTIONS flags from C node type definitions, these ↵Lukas Toenne
are no longer required and have no effect. Whether or not a node supports additional options buttons is now determined by the existence of a draw callback (uifunc and/or uifuncbut).
2013-05-28Fix #35547: incomplete tooltips in node editorSergey Sharybin
Descriptions were missing since PyNodes integration. Thanks to lukas for patch review!
2013-05-27style cleanup: nodesCampbell Barton
2013-05-27style cleanup: nodesCampbell Barton
2013-05-24style cleanupCampbell Barton
2013-05-22Texture Nodes:Thomas Dinges
* Use node size presets as well, some nodes were too small and also too limited in max size.
2013-05-20Math Node:Thomas Dinges
* Added a Modulo operation to the math node, available in Compositor, Shader and Texture Nodes.
2013-05-10Fix #35278: textures nodes Mix RGB node did not have a Use Alpha option likeBrecht Van Lommel
the compositing node. Note the shader nodes can't have this because color sockets there are only RGB, not RGBA.
2013-04-20Removed the group_tree_idname property from node types. This was a bit of a ↵Lukas Toenne
hack to associate node group types to specific tree types for node group operators. Since the node group operators now work independent from this property (see r56183) that property is no longer needed and just pollutes the bNodeType struct.
2013-04-12Paint refactoring commit, non-disruptive (in theory :p)Antony Riakiotakis
* Fix precision overflow issue with overlay previews, * Expose alpha mask mapping to UI (still not functional but coming soon). * More overlay refactoring: Overlay now does minimal checking for texture refresh. Instead, we now have invalidation flags to set an aspect of the brush overlay as invalid. This is necessary because this way we will be able to separate and preview different brush attributes on the overlays, using different textures: These attributes/aspects are: Primary texture (main texture for sculpt, vertex, imapaint) Secondary texture (mask/alpha texture for imapaint) Cursor texture (cursor texture. It involves brush strength and curves) Modified the relevant RNA property update functions and C update callback functions to call the relevant cursor invalidation functions instead of checking every frame for multiple properties. Properties that affect this are: Image changes, if image is used by current brush, Texture slot changes, similarly Curve changes, Object mode change invalidates the cursor Paint tool change invalidates the cursor. These changes give slightly more invalidation cases than simply comparing the relevant properties each frame, but these do not occur in performance critical moments and it's a much more elegant system than adding more variables to check per frame each time we add something on the system.
2013-04-06Node UI:Thomas Dinges
* After PyNodes merge, many node sockets had sliders, instead of the arrow buttons (as the PROP_FACTOR subtype now actually was used). Change those back now, after artists feedback.
2013-04-03Fix #33628, Segmentation fault after pasting a closed group of nodes into an ↵Lukas Toenne
open group. Finally now there is a proper check for pasting nodes into groups. It uses the poll_instance callback of node types to determine if a node can be added into a specific node tree. Currently this is only implemented for group nodes and does a recursive check to avoid pasting a node group into itself (on any level, also nested groups).
2013-03-31style cleanupCampbell Barton
2013-03-22Node preview merge function now has an additional option "remove_old", which ↵Lukas Toenne
could be used if previous previews should be retained after recalculating (not used currently, old previews are dropped entirely for now, because it could be confusing). Also moved the sync and merge for previews into the respective tree callbacks for consistency. This way the handling of previews can be changed for each tree type individually if necessary.
2013-03-19Fixes for context updates of the node editor:Lukas Toenne
* If the node tree can be updated from context (tree has get_from_context callback defined), reset the pointers first to clear the editor path if no tree can be found. * Stupid mistake: snode->from != snode->from is always false. * Shader nodes context update: set the 'from' pointer to the active object, even if it doesn't have a material or node tree.
2013-03-18code cleanupCampbell Barton