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
2017-12-04Resolve MSVC C2229Campbell Barton
Code works as expected, but MSVC disallows
2017-12-04Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenloader/BLO_readfile.h source/blender/blenloader/intern/readfile.c source/blender/windowmanager/intern/wm_files_link.c
2017-12-04Cleanup: link/append: get rid of booleans in func parameters.Bastien Montagne
One or two are OK, but more make it rather unreadable, and future work is likely to require more toggle specific behavior here. So switched to bitflags, switching from short to int and using 16 upper bits for 'internal' ones defined in BLO_readfile.h, combined with 'public' ones from user interaction, defined in DNA_space_types.h
2017-12-04WM: message bus replacement for property notifiersCampbell Barton
Use dynamically generated message publish/subscribe so buttons and manipulators update properly. This resolves common glitches where manipulators weren't updating as well as the UI when add-ons exposed properties which hard coded listeners weren't checking for. Python can also publish/scribe changes via `bpy.msgbus`. See D2917
2017-11-28Depsgraph: Remove workaround for Blender Internal in viewportSergey Sharybin
This commit effectively reverts fix T45702 done in 067fe2719a99. Reasoning: - Blender Internal is being replaced with Eevee, and will be removed entirely rather soon. - All render engines are planned to have own depsgraph, so such threading conflicts should no longer be an issue. - We don't want to spend time on porting workarounds for EOL things to a new design. Less code -- faster the work :) - If such notifications will end up needed for some other cases, we would need to re-implement this a more proper depsgraph tagging/flushing and make it to work with all copy-on-write datablocks and everything.
2017-11-27Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-27Refactor view3d offscreen drawing to avoid having multiple boolean argumentsSergey Sharybin
This is fully unreadable to have lots of boolean arguments scattered across the whole argument list. What does `false, true, true` mean in terms of behavior? Replace those with bitfield which has advantage of having more human readable meaning.
2017-11-27Tool System: show manipulators at startupCampbell Barton
Support duplicating, switching workspaces too.
2017-11-27WM: handle widgets before tool keymapsCampbell Barton
Allows adjusting on-screen widgets even when a tool is selected.
2017-11-24Manipulator: fix camera lens update glitchCampbell Barton
Property range setup initially used values that can change.
2017-11-23Support tagging operator properties as 'advanced'Julian Eisel
This will later be used to show advanced operator properties separate from basic (as in non-advanced) ones in the UI. Tagging a single operator property in C should be done via `WM_operatortype_prop_tag()`. It does additional checks for type safety that `RNA_def_property_tags()` doesn't do. To avoid having to tag each advanced property individually, multiple ones can be tagged by wrapping them into `WM_operatortype_props_advanced_bein()` and `WM_operatortype_props_advanced_end()` calls. It's also possible to only call `_begin()`, all properties added after this will get tagged then. In most cases this last approach should be sufficient. Example of Python usage: `my_float = bpy.props.FloatProperty(name="Some Float", tags={'ADVANCED'})`
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
The RenderResult struct still has a listbase of RenderLayer, but that's ok since this is strictly for rendering. * Subversion bump (to 2.80.2) * DNA low level doversion (renames) - only for .blend created since 2.80 started Note: We can't use DNA_struct_elem_find or get file version in init_structDNA, so we are manually iterating over the array of the SDNA elements instead. Note 2: This doversion change with renames can be reverted in a few months. But so far it's required for 2.8 files created between October 2016 and now. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D2927
2017-11-22Merge branch 'master' into blender2.8Campbell Barton
2017-11-22Fix T53274: Saving template prefs overwrites default prefsCampbell Barton
2017-11-22Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-22WM: minor correction to user-pref writingCampbell Barton
When saving templates had wrong return value.
2017-11-21Disable adding scene sequence strips into themselvesCampbell Barton
D2923 by @spockTheGray w/ edits, see T52586 for details
2017-11-20Merge branch 'master' into blender2.8Campbell Barton
2017-11-20Cleanup: BLI headers firstCampbell Barton
Also move descriptions into doxy header
2017-11-19Cleanup: remove BKE_utildefinesCampbell Barton
This was meant to be used for less general macros but was never used. Rename BKE_BIT_TEST_SET to SET_FLAG_FROM_TEST
2017-11-14Cleanup: remove BLI_blenlib from ghash headerCampbell Barton
This causes source files to depend on ghash header for BLI_string/rect/listbase. Also quiet warnings.
2017-11-10Manipulator: public highlight utility functionCampbell Barton
Also utility to find group from a manipulator map.
2017-11-09Cleanup: Use full name for scene_layer in windowmanagerSergey Sharybin
2017-11-09Remove unused screen-name storage in windowJulian Eisel
Checked in really old revisions, seems like this was never used. So doesn't matter for compatibility either (tested opening files saved with this in 2.49).
2017-11-09Fix crash using pre 2.5 file as startup.blendJulian Eisel
2017-11-09Cleanup: Refactor window matching after file read for readabilityJulian Eisel
Code should hopefully be much clearer now. Also removing code that's been commented out for a while, and was never executed in master.
2017-11-09Depsgraph: Make dependency graph to be built from scene layerSergey Sharybin
This is a final step of having proper ownership. Now selecting different layers in the "top bar" will actually do what this is expected to do. Surely, there are still things to be done under the hood, that will happen in a less intrusive way.
2017-11-09Fix crash when loading pre 2.5 files.Julian Eisel
Versioning code involving WM wouldn't run then (WM was just introduced in 2.5).
2017-11-08Depsgraph: Move storage from single per-scene depsgraph to a hash storageSergey Sharybin
Depsgraph itself is still created fer the whole scene rather than for a single layer, this is to be addressed next. The storage for those dependency graphs is in scene, but now it is a hash indexed by layer. In the future we can extend hash key to include extra information (workspace? window?).
2017-11-07Depsgraph: Get away from legacy API used in event loopSergey Sharybin
A bit tricky for now, needs some clear design about when to do on_visible_changed().
2017-11-07Depsgraph: Remove forced dependencies update/evaluation from file openSergey Sharybin
This was originally done as a fix for T37713, but now this workaround becomes tricky since we don't know which layers to update scene for. Even more, render engine is supposed to have own dependency graphs amd those ones do not exist yet at the file open time. Keep an eye on T37713, since that's where the original workaround is coming from.
2017-11-06Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/device/device.cpp source/blender/blenkernel/intern/library.c source/blender/blenkernel/intern/material.c source/blender/editors/object/object_add.c source/blender/editors/object/object_relations.c source/blender/editors/space_outliner/outliner_draw.c source/blender/editors/space_outliner/outliner_edit.c source/blender/editors/space_view3d/drawobject.c source/blender/editors/util/ed_util.c source/blender/windowmanager/intern/wm_files_link.c
2017-11-06Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.Bastien Montagne
This makes code closer to id_override/assent-engine ones, which introduce a new type of linked data, and hence reserve ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-11-06Fix T53250: Crash when linking/appending a scene to a blend when another ↵Bastien Montagne
linked scene in this blend is currently open/active. Inner DAG code would not check against NULL pointer, and in case of an active linked scene, scene pointer will be NULL here, so we have to check it ourself. ;)
2017-11-05Merge branch 'master' into blender2.8Campbell Barton
2017-11-05Cleanup: order buffer length after the bufferCampbell Barton
2017-11-05Cleanup: spellingCampbell Barton
2017-11-03Depsgraph: Port more areas to direct depsgraph APISergey Sharybin
This is a lots of changes, but they are boiling down to a simple API changes where we are no longer relying on implicit usage of scene's depsgraph and pass depsgraph explicitly. There should be no user measurable difference, render_layer* tests are also passing.
2017-11-02UI: workaround glitch refreshing the toolbarCampbell Barton
2017-11-02UI: support nested tools in toolbarCampbell Barton
2017-11-02Merge branch 'master' into blender2.8Campbell Barton
2017-11-02UI: use button_operator in operator_menu_holdCampbell Barton
Move draw calls into UI_menutype_draw
2017-10-31Merge branch 'master' into blender2.8Campbell Barton
2017-10-31UI: replace UI_ITEM_O_RETURN_PROPS /w return argCampbell Barton
Means we can have a version of this function that returns the button and avoids returning a struct that often isn't used.
2017-10-30Fix T53191: Python API Reference link wrong in splash screen.Bastien Montagne
Forgot to update splashscreen links when we switched API doc naming scheme...
2017-10-30Fix manipulator drawing before their refresh callbackCampbell Barton
Caused glitch with Scale-Cage tool.
2017-10-26Move background images into the cameraCampbell Barton
This moves background images out of the 3D viewport, to be used only as camera reference images. For 3D viewport references, background images can be used, see: D2827 Some work is still needed (background option isn't working at the moment).
2017-10-26Cleanup: Remove unused argument from ED_update_for_newframeSergey Sharybin
This funciton will be extended, so better to get rid of unused arguments before adding new ones.
2017-10-26Merge branch 'master' into blender2.8Campbell Barton
2017-10-26Event System: check_click was left setCampbell Barton
Caused by own change 137586a13c