Skip to content

Commit

Permalink
#5565: Lock editing controls for PK4-defined materials. Add a control…
Browse files Browse the repository at this point in the history
… to quickyl create a copy of it to enable editing.
  • Loading branch information
codereader committed Mar 28, 2021
1 parent 15fb192 commit efc834b
Show file tree
Hide file tree
Showing 5 changed files with 393 additions and 259 deletions.
3 changes: 3 additions & 0 deletions include/ishaders.h
Expand Up @@ -585,6 +585,9 @@ class MaterialManager
// a generated one will be assigned to the created material
virtual MaterialPtr createEmptyMaterial(const std::string& name) = 0;

// Creates a copy of the given material and returns the reference to it
virtual MaterialPtr copyMaterial(const std::string& nameOfOriginal, const std::string& nameOfCopy) = 0;

virtual bool renameMaterial(const std::string& oldName, const std::string& newName) = 0;

virtual void removeMaterial(const std::string& name) = 0;
Expand Down

0 comments on commit efc834b

Please sign in to comment.