Age | Commit message (Collapse) | Author |
|
This makes supporting split properties and text possible, see T54951
|
|
The few ones in getters/setters we cannot remove as easily, for now we
can live with those I think...
|
|
Size is already checked.
|
|
|
|
This change is needed for 2.8, where the NULL check isn't a reliable way
of testing if dynamic offset is needed.
|
|
Don't use sprintf to append a string to it's self.
Also correct BLI_str_rstrip_float_zero's return value.
|
|
This patch adds support for IES files, a file format that is commonly used to store the directional intensity distribution of light sources.
The new IES node is supposed to be plugged into the Strength input of the Emission node of the lamp.
Since people generating IES files do not really seem to care about the standard, the parser is flexible enough to accept all test files I have tried.
Some common weirdnesses are distributing values over multiple lines that should go into one line, using commas instead of spaces as delimiters and adding various useless stuff at the end of the file.
The user interface of the node is similar to the script node, the user can either select an internal Text or load a file.
Internally, IES files are handled similar to Image textures: They are stored in slots by the LightManager and each unique IES is assigned to one slot.
The local coordinate system of the lamp is used, so that the direction of the light can be changed. For UI reasons, it's usually best to add an area light,
rotate it and then change its type, since especially the point light does not immediately show its local coordinate system in the viewport.
Reviewers: #cycles, dingto, sergey, brecht
Reviewed By: #cycles, dingto, brecht
Subscribers: OgDEV, crazyrobinhood, secundar, cardboard, pisuke, intrah, swerner, micah_denn, harvester, gottfried, disnel, campbellbarton, duarteframos, Lapineige, brecht, juicyfruit, dingto, marek, rickyblender, bliblubli, lockal, sergey
Differential Revision: https://developer.blender.org/D1543
|
|
Suggested by Percy Ross Tiglao.
|
|
This commit adds number formatting (thousands separator) to the baking panel. It also adds a new function to format memory sizes (KB/GB/etc) and applies it to the baking panel and scene stats. The new function is unit tested.
Reviewers: Severin
Tags: #user_interface
Differential Revision: https://developer.blender.org/D1248
|
|
Keep in sync with 2.8x
|
|
Replace hard-coded button size check with UI_UNIT_X.
Caused icon-only buttons to have strings assigned based on UI-scale.
|
|
|
|
The Math node currently has the normal atan() function, but for
actual angles this is fairly useless without additional nodes to handle the signs.
Since the node has two inputs anyways, it only makes sense to add an arctan2 option.
Reviewers: sergey, brecht
Differential Revision: https://developer.blender.org/D3430
|
|
These operators only need selected objects.
|
|
affects one item
UI editing multiple selected items missed the case of PROP_POINTER
properties
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3373
|
|
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3361
|
|
work
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3360
|
|
Some conversion helper functions were (most likely by accident) contained
inside an ifdef for SSE2 support, so on e.g. ARM they would be undefined
and therefore cause compilation to fail.
|
|
|
|
|
|
|
|
|
|
It seems output parameter needs to be the last one.
|
|
|
|
Also RNA access to WM_keyconfig_update,
needed when generating dynamic keymaps used in menus immediately after.
|
|
through python
|
|
|
|
Part of T54798
|
|
Needed for use in rna non runtime code.
|
|
|
|
It's important edit-mode has a step stored for redo to work,
file load now ensures this in a generic way.
|
|
Annoying for debug builds.
|
|
|
|
Regression in recent undo system changes,
This caused T55048.
When each mode had its own undo stack it was important
to initialize it when entering edit-mode.
|
|
|
|
While the warning can normally be disabled, we don't have have as much
control of warnings when macros are used.
|
|
|
|
|
|
|
|
Change the fill setting in the keymap,
this allows tool access the macro with either setting.
|
|
|
|
Freeing sequencer would always do usercount, which is now forbidden when
called from main ID freeing code.
Annoying in 2.7x, much more critical issue in 2.8!
Also, moved RNA sequencer API functions to proper rna_scene_api.c file.
|
|
thread.
Icin/preview only works in main thread, while image loading can be done
from others too... This could have generated random crashes and such.
|
|
Readcode always set relative paths of indirectly linked libs relative to
*current* .blend file, not to the library using it.
But BKE_library_filepath_set was then setting them relative to their
parent library, breaking checking code (and saved files even :((( ).
|
|
Influence vertexgroup into account
|
|
|
|
Could lead to atempt to free NULL pointer, and/or memory leak.
|
|
Previous fix failed w/ compositor,
tested on MSVC2015, full build.
|
|
windows headers define these, conflicting w/ View3D.near/far.
|
|
This commit is part of T54798
Differential Revision: https://developer.blender.org/D3183
|