Blender Git Loki

Blender Git "experimental_gp_weight" branch commits.

Page: 72 / 122

October 4, 2017, 21:06 (GMT)
Merge branch 'blender2.8' into greasepencil-object
October 4, 2017, 21:01 (GMT)
Fix: Palettes were getting freed before GPencil datablocks on exit
October 4, 2017, 13:12 (GMT)
First test to implement FXAA
October 4, 2017, 12:52 (GMT)
Merge branch 'blender2.8' into greasepencil-object
October 4, 2017, 12:16 (GMT)
Fix compile error after merge

(Also added convenience API to make it easier to add new palettes to GP
datablock without having to worry about manually fixing usercount)
October 4, 2017, 11:52 (GMT)
Fix: When adding 2D Monkey, the Palette got too many users assigned
October 4, 2017, 11:52 (GMT)
Added missing support for duplicating Palette Slots when copying GP data

For now, it will only increment the usercount of the referenced palettes.
October 4, 2017, 11:52 (GMT)
Code Cleanup / TODO Notes (re- reuse of palettes when validating)
October 4, 2017, 11:52 (GMT)
Code Cleanup / Compile Fix

Further cleanups for the 2D monkey primitive - this time, to move
all the data arrays out of the single massive function, and out to file level.

Hopefully this solves the compile problems with GCC.

If nothing else, the file now compiles much faster here on MSVC
(i.e. previously, it was taking ~10-20 seconds to compile)
October 4, 2017, 11:52 (GMT)
Tweak behaviour of adding a new GP Palette (to match other parts of Blender)

When creating a new Palette with an existing Palette assigned to a slot,
a copy of the old Palette will be created (i.e. the new copy will have all
the same colours), instead of creating a blank palette.

This makes it easier to create different versions of the same palette.
October 4, 2017, 11:52 (GMT)
Palette Slots - Temporary verison-patching code to add slots for early 2.8 files saved without these
October 4, 2017, 11:52 (GMT)
Palette Slots - Add operators to Add/Remove Palette Slots

* Add will create a new (empty) slot by default

* Remove will shown an error if the slot is currently still used by
any strokes. Perhaps in future, it should remap the strokes instead?

* Added icon for Palette Slots (it uses the same icon as Palettes now)
October 4, 2017, 11:52 (GMT)
Fix: Missing undo flags for various GP operators
October 4, 2017, 11:52 (GMT)
Code Cleanup - Remove old/non-existent operator defines
October 4, 2017, 11:52 (GMT)
Fix: Newly created palettes for palette slots got an extra/unneeded user
October 4, 2017, 11:52 (GMT)
Various fixes to get GP Palettes UI working

* Switched the UI to using the "active_gpencil_palette" (and palette color) context
vars (in favor of the "active_palette"/color) ones for retrieving the active
palette. For some unknown reason, context.active_object returns null when
trying to use it in the Properties Editor when drawing UI layouts, but it works
perfectly fine when operators calling operator.poll() or running operators.

* Sanitise many of the hacks added to the Palette operators to make them usable
for Grease Pencil-linked palettes (e.g. remove special hacky args)

* Add RNA support for getting the active GP palette slot
October 4, 2017, 11:52 (GMT)
BKE_palette_get_active_from_context(C) now retrieves GP palettes from the active palette slot
if the active object is a GP object

This makes it possible to reuse all the Palette operators as-is,
without having to add a lot of GP-specific duplicates, and also
simplifies much of the context polling stuff.
October 4, 2017, 11:52 (GMT)
Palette Slots - Add UI panel for Palette slots
October 4, 2017, 11:52 (GMT)
Code Cleanup: Move panel definitions for Palette-based colors to the Material panels file

Annotations (GP in 2D editors) will not be using this stuff,
as they will not have most of the fancy drawing options (as
they are based on the traditional 2D api instead).
October 4, 2017, 11:52 (GMT)
Fix: Don't create redundant palette for Monkey
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021