Material: Appearance Updates 2
Improves the use of the ShapeAppearance property for the Part workbench.
removes DiffuseColor property
adds Python compatibility using custom attributes
transitions DiffuseColor to ShapeAppearance on open
Improved UI elements for setting object appearance, and appearance per face
Lays the foundation for future texture support
This commit is contained in:
committed by
Chris Hennes
parent
c4d0f3ed97
commit
5feb963f9d
@@ -150,6 +150,12 @@ OutputStream& OutputStream::operator<<(double d)
|
||||
return *this;
|
||||
}
|
||||
|
||||
OutputStream& OutputStream::write(const char* s, int n)
|
||||
{
|
||||
_out.write(s, n);
|
||||
return *this;
|
||||
}
|
||||
|
||||
InputStream::InputStream(std::istream& rin)
|
||||
: _in(rin)
|
||||
{}
|
||||
@@ -246,6 +252,12 @@ InputStream& InputStream::operator>>(double& d)
|
||||
return *this;
|
||||
}
|
||||
|
||||
InputStream& InputStream::read(char* s, int n)
|
||||
{
|
||||
_in.read(s, n);
|
||||
return *this;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
ByteArrayOStreambuf::ByteArrayOStreambuf(QByteArray& ba)
|
||||
|
||||
@@ -95,6 +95,8 @@ public:
|
||||
OutputStream& operator<<(float f);
|
||||
OutputStream& operator<<(double d);
|
||||
|
||||
OutputStream& write(const char* s, int n);
|
||||
|
||||
OutputStream(const OutputStream&) = delete;
|
||||
OutputStream(OutputStream&&) = delete;
|
||||
void operator=(const OutputStream&) = delete;
|
||||
@@ -126,6 +128,8 @@ public:
|
||||
InputStream& operator>>(float& f);
|
||||
InputStream& operator>>(double& d);
|
||||
|
||||
InputStream& read(char* s, int n);
|
||||
|
||||
explicit operator bool() const
|
||||
{
|
||||
// test if _Ipfx succeeded
|
||||
|
||||
Reference in New Issue
Block a user