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-03-28Fix T47898: Error adding mask node with "Add Mask Node" operatorSergey Sharybin
This operator is intended to be used by drag-n-drop, no user invocation is expected to happen here. Use Add->Search to quickly add nodes instead.
2016-02-07Cleanup: line widthCampbell Barton
2015-11-12Cleanup: rename line to segments, avoids confusionCampbell Barton
Differentiate between lines and segments.
2015-11-09Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.Bastien Montagne
We have callbacks for that, they also do some checks and help ensure things are done correctly. Only place where this is assumed not true is blenloader (since here we may affect refcount of library IDs as well...).
2015-08-23This commit makes it possible to select the sort mode whenever we invoke an ↵Thomas Beck
operator. It's needed especially for the menu entry "recover auto save" where you'd like to have the files sorted by date most of the time but it could be useful in other places too. There should be no functional change in other areas, I just added the missing parameter (FILE_SORT_ALPHA). Was a request from @sebastian_k at #BCon13, so at least one guy needs it ;) Reviewers: mont29 Reviewed By: mont29 Subscribers: sebastian_k Differential Revision: https://developer.blender.org/D1476
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-01-04FileBrowser: Cleanup: rename some (really ugly) enum names.Bastien Montagne
2015-01-01cleanup: redundant casts & const cast correctnessCampbell Barton
2014-12-23Fix T42928: Drag-drop of generated files to compo reloads them, loosing editsSergey Sharybin
Origins of this issue goes back to T33402, where compo wasn't sure what kind of image it is working with (compo should know if it's multilayer or regular image). Now we only reload images when dar-dropping from outside of blender.
2014-11-30More fixes related to D&D:Bastien Montagne
* Same issue as T42760 was also reproducible in some cases in 3DView. * You got an error message about missing RNA prop in some drop-called operators. * You could not drop a movie file in nodes, (some cases of) 3DView, nor ImageEditor.
2014-11-28Cleanup: unused headersCampbell Barton
2014-11-24Cleanup: de-duplicate image drag & drop logicCampbell Barton
also don't make library paths relative on image load.
2014-11-24Minor edits to T42649 fixCampbell Barton
- only modify paths for newly loaded images - don't attempt to read from library paths
2014-11-23Fix T42649: Use Relative Paths for Node Editor & 3D View Imagesjulianeisel
Images are now added with relative paths to the Node Editor and the 3D View.
2014-11-18Make it possible to use preview/viewport render job kill without contextSergey Sharybin
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-02-07ListBase API: add utility api funcs for clearing and checking emptyCampbell Barton
2014-01-21Code Cleanup: use bool for return values and correct commentsCampbell Barton
also remove CDDM_Check, theres no need for it.
2014-01-17Fix T38141: wrong add reroute node location with shift LMB cut on OS X / retina.Brecht Van Lommel
2014-01-04RNA API: use bool's for enum itemf callbacks.Campbell Barton
2013-12-10Node Previews:Jeroen Bakker
Removed USE_HIDDEN_PREVIEW from source code as it is now deprecated. The feature was introduced during project mango to quickly hide previews, now that the previews are hidden by default this feature has no need. Inside the DNA the flag is still visible in comment, this way no one will reuse that value as it could have some side effects Jeroen & Monique - At Mind -
2013-09-05Bugfix #35920Ton Roosendaal
Adding a new node in Node Editor failed for "High DPI" (Only Mac retina now). - Py script for adding nodes was doing dpi magic, which it shouldn't. It has been replaced with a (temporary) API call to set the correct cursor location. (Thanks to Lukas T for helping here) - The SpaceNode->cursor[2] property now is *only* storing the coordinate in "adding new node space". Use of this has been removed from the code where possible, with as only exception the code to draw noodles while adding them. Special coder note: Nodes should respect the DPI value, and draw larger with larger buttons if you increase this size. The hack here is that this can only work nice if also the node positions are scaled accordingly. A better fix could be to check on scaling the node view itself for it. That then would also remove this Python API call that was added in this commit. However, that again might fight with how buttons layout code works now... needs some careful checking.
2013-08-24style cleanup: space around for loop wrappersCampbell Barton
2013-08-06code clenup: remove benchmarking left in by accident and GPU print, also ↵Campbell Barton
some minor style edits
2013-07-23Minor UI typo fix... ;)Bastien Montagne
2013-07-22Allow creation of mask nodes in compositor with drag&drop of mask datablocksSv. Lockal
Also remove superfluous "deselect all" operation in drag&drop for images
2013-06-12Fix #35703, Viewer node doesn't updates image sometimes. The viewer node was ↵Lukas Toenne
not getting correctly initialized node->id pointer to the Viewer image (thanks to Sergey for figuring that out). The original proposal was to add another special init hack for the viewer node->id, but rather would do it right and so moved all the special init hacks for constant ID backpointers (Scene for RenderLayer, Composite, Defocus, FileOutput and MovieClip for MovieClip, MovieDistortion and Stabilization nodes). These are now part of the local init callbacks functions of the appropriate nodes, using the new initfunc_api callback which takes a Context pointer, so they have access to Scene.
2013-06-05Fix #35640, part 2. Check id.lib in poll functions for operators which do ↵Lukas Toenne
critical modification of node trees (create nodes, link, etc.). Transform operators and hide/show type operators are still allowed, this does not modify actual behavior of the nodes and can be useful for inspecting linked nodes.
2013-05-08code cleanup: use 'const float[2]' where possible.Campbell Barton
2013-05-07Fix #35122: Blenderplayer crashes when loading levelSergey Sharybin
Issue was caused by ntreeUpdateTree calling for a ntree which is not in G.main. This lead to issues in ntreeVerifyNodes (which is called from ntreeUpdateTree). Made is so ntreeUpdateTree now accepts main as an argument. Will work for the release, later we could either solve the TODO mentioned in ntreeUpdateTree which will eliminate need in main there or make it so context's main is used from all over where ntreeUpdateTree is called (currently there're still some usages of G.main).
2013-04-16Fix a few warnings. One was an actual bug in freestyle where stroke attributesBrecht Van Lommel
were not properly interpolated.
2013-04-12Fix for user count when adding a new library node tree. This needs to ↵Lukas Toenne
decrease user count by 1 to compensate for increment in RNA_property_pointer_set.
2013-03-26I18n: various "new data translation" fixes...Bastien Montagne
2013-03-22Fix for the use_hidden_preview setting in SpaceNode. The application of this ↵Lukas Toenne
flag to new nodes got lost during merges at some point. Also is now in the python node.add_node operator as well as the C function.
2013-03-18code cleanupCampbell Barton
2013-03-18Merge of the PyNodes branch (aka "custom nodes") into trunk.Lukas Toenne
PyNodes opens up the node system in Blender to scripters and adds a number of UI-level improvements. === Dynamic node type registration === Node types can now be added at runtime, using the RNA registration mechanism from python. This enables addons such as render engines to create a complete user interface with nodes. Examples of how such nodes can be defined can be found in my personal wiki docs atm [1] and as a script template in release/scripts/templates_py/custom_nodes.py [2]. === Node group improvements === Each node editor now has a tree history of edited node groups, which allows opening and editing nested node groups. The node editor also supports pinning now, so that different spaces can be used to edit different node groups simultaneously. For more ramblings and rationale see (really old) blog post on code.blender.org [3]. The interface of node groups has been overhauled. Sockets of a node group are no longer displayed in columns on either side, but instead special input/output nodes are used to mirror group sockets inside a node tree. This solves the problem of long node lines in groups and allows more adaptable node layout. Internal sockets can be exposed from a group by either connecting to the extension sockets in input/output nodes (shown as empty circle) or by adding sockets from the node property bar in the "Interface" panel. Further details such as the socket name can also be changed there. [1] http://wiki.blender.org/index.php/User:Phonybone/Python_Nodes [2] http://projects.blender.org/scm/viewvc.php/trunk/blender/release/scripts/templates_py/custom_nodes.py?view=markup&root=bf-blender [3] http://code.blender.org/index.php/2012/01/improving-node-group-interface-editing/
2013-03-13code cleanup: use const events for modal and invoke operators.Campbell Barton
2013-02-28More UI messages fixes...Bastien Montagne
2013-02-05Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashesSergey Sharybin
Issue was caused by couple of circumstances: - Normal Map node requires tesselated faces to compute tangent space - All temporary meshes needed for Cycles export were adding to G.main - Undo pushes would temporary set meshes tessfaces to NULL - Moving node will cause undo push and tree re-evaluate fr preview All this leads to threading conflict between preview render and undo system. Solved it in way that all temporary meshes are adding to that exact Main which was passed to Cycles via BlendData. This required couple of mechanic changes like adding extra parameter to *_add() functions and adding some *_ex() functions to make it possible RNA adds objects to Main passed to new() RNA function. This was tricky to pass Main to RNA function and IMO that's not so nice to pass main to function, so ended up with such decision: - Object.to_mesh() will add temp mesh to G.main - Added Main.meshes.new_from_object() which does the same as to_mesh, but adds temporary mesh to specified Main. So now all temporary meshes needed for preview render would be added to preview_main which does not conflict with undo pushes. Viewport render shall not be an issue because object sync happens from main thread in this case. It could be some issues with final render, but that's not so much likely to happen, so shall be fine. Thanks to Brecht for review!
2013-01-27Operators name "cleanup"Dalai Felinto
The operator names all show up in the Search button. As such is nicer if they can all have the main words capitalized. e.g. "Snap strips" should be "Snap Strips" "Copy to clipboard" should be "Copy to Clipboard" This was done with a mix of bash tools, regex, and manual work because I'm too rushed into regex :) + fix bge stereo eye separation tooltip
2012-12-14style cleanupCampbell Barton
2012-12-12Holiday coding log :)Ton Roosendaal
Nice formatted version (pictures soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability Short list of main changes: - Transparent region option (over main region), added code to blend in/out such panels. - Min size window now 640 x 480 - Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake. - Macbook retina support, use command line --no-native-pixels to disable it - Timeline Marker label was drawing wrong - Trackpad and magic mouse: supports zoom (hold ctrl) - Fix for splash position: removed ghost function and made window size update after creation immediate - Fast undo buffer save now adds UI as well. Could be checked for regular file save even... Quit.blend and temp file saving use this now. - Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)" - New Userpref option "Keep Session" - this always saves quit.blend, and loads on start. This allows keeping UI and data without actual saves, until you actually save. When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header) - Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. - User preferences (themes, keymaps, user settings) now can be saved as a separate file. Old option is called "Save Startup File" the new one "Save User Settings". To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still. - OSX: fixed bug that stopped giving mouse events outside window. This also fixes "Continuous Grab" for OSX. (error since 2009)
2012-12-04Fix #33402: Compositor crashes when drag-dropping multilayer exrSergey Sharybin
There was a missing image reload signal in node creation by drag-dropping, which lead to incorrectly set image type. Also fixed misusage of IMB_freeImBuf used to release buffer acquired by BKE_image_acquire_ibuf.
2012-11-04Node reroute cut operator update.Lukas Toenne
Cutting mulitple links with for inserting reroute nodes would previously insert only one reroute node for the first cut link. Now the operator will insert a reroute node for every link in the cut line. Also, if several links share the same input/output socket, it will insert only a single reroute node, which all affected links will then share.
2012-10-26Big i18n commit: add "reports" from bmesh/readfile/tracking/dynapaint (and a ↵Bastien Montagne
few others), and another bunch of UI messages tweaks/fixes, as well as some BKE_report()<->BKE_reportf()...
2012-08-22style cleanupCampbell Barton
2012-08-08Renamed the mx/my coordinates in SpaceNode to more descriptive 'cursor'. ↵Lukas Toenne
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-04style cleanupCampbell Barton
2012-08-04dont re-combute composite nodes when knife and add-socket operators don't ↵Campbell Barton
add any links.